FSO Folder copy (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


yaronbb -> FSO Folder copy (9/13/2007 19:56:21)

Hi to all,

I am using this script to copy a folder from my site, and I want that the target will be my local computer.

<%
Dim FSO
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
FSO.CopyFolder "C:\Inetpub\WebSites\Mysite","C:\LocalComputer",True
Set FSO = Nothing
%>

Is it possible?




rdouglass -> RE: FSO Folder copy (9/14/2007 9:19:34)

FSO only works on the machine that the script is running on. It cannot copy from one computer to the next.




yaronbb -> RE: FSO Folder copy (9/14/2007 14:05:21)

Ok, so is there other way to do it?




ThomasMobley -> RE: FSO Folder copy (9/16/2007 17:54:20)

fso can't do it, but you can read the file in fso and feed that to an ado stream object and then write it back to the client. It's a tad complicated though. What's wrong with good old ftp? This is the second post I read on this subject and neither were about allowing anonymous users to download a file. Site owners should just use ftp to do this it would seem to me.

Am I missing something?




yaronbb -> RE: FSO Folder copy (9/17/2007 2:35:54)

Hi, thanks for replaying me.

This is my testing and development site, so I am trying to back up all my site in one click. But it seems that the ftp sound good for me…




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875