Windows Server 2003
1821052 Members
2204 Online
109631 Solutions
New Discussion юеВ

Robocopy from ftp server

 
CA1455689
New Member

Robocopy from ftp server

Hi Guys

I need to use Robocopy to copy folders and files from an ftp server like this:
robocopy "ftp://10.1.3.216/testingshare" "C:\Temp" /E /Z /V /TEE /LOG+:"C:\Documents and Settings\terencen\My Documents\Visual Studio 2005\Projects\RoboCopy\RoboCopy\bin\Debug\Robocopy\Logs\Log.txt" /R:10 /W:30

this bovoisly generates an error due to the ftp server as a source. Anybody know if it's possible to do something like this. I've also tried mapping an ftp server to a network drive using a utility called netdrive. this way I am able to supply "Z:\" as the source for robocopy and it works but it's way too slow. Please help.
2 REPLIES 2
Dan Robinson_4
Regular Advisor

Re: Robocopy from ftp server

You cant talk FTP via Robocopy, but FTP.exe has its own scripting language.

Type ftp -? at a command prompt to see more details about the -s option.

Basically you just stick all the FTP commands in a text file line by line and then FTP will process them just as if you typed them.

You can perhaps use this to create a local copy of all the data and then use robocopy to do the rest.


I'm just not sure if FTP can do the /s (/E in your script) type stuff.

I take it you dont have CIFS access to the remote machine?

-Dan
Court Campbell
Honored Contributor

Re: Robocopy from ftp server

You might try downloading a windows port of wget or curl.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"