
Problems with Filesystem object Copy method
FSO methods do not support HTTP...
If it's an Intranet, you could use a UNC path to the file on the server, assuming there was an
appropriate network share established...
--
Michael Harris
MVP Scripting
Hi all. I have the following:
.
set fs = CreateObject("Scripting.FileSystemObject")
set theFile = fs.GetFile(" http://www.*-*-*.com/ ;)
theFile.copy ("C\/Program Files\whatever\")
.
I have Personal Web Server running, and my computer is 'jere.computer.net'.
'test' is a folder which has been set for web sharing. Web pages in this
folder can be accessed through the URL http://www.*-*-*.com/
whatever.exe is also in this folder. (The above code is in a web page).
However when this code runs, it gets to the line:
.
set theFile = fs.GetFile(...
.
and gives the following error: "Error: File Not Found..."
.
Is it possible to use the Filesystem object in this way? If not then how
would you go about downloading a file from a website and storing it to the
users hard drive? (With their permission, of course - I'm not writing a
virus... ;-)
.
Thanks muchly for any help,
Jere