Copy all files from share drive to ftp server

Microsoft Windows xp professional sp2 w/...
January 20, 2010 at 22:45:02
Specs: Windows Server 2003

Hi ,

I am trying to write a batch script which has to copy all files from a share drive folder to a ftp server.

I am trying with the below ftp script,but i am not able to copy the contents of the folder to the ftp server.

Open 21
Cd /DWB/PWRscan/Archive/
mput \\Sharedrive|xyzfolder\*.*

Please let me if I need to modify the above script, so that it will copy all the files from share drice folder to ftp server.


See More: Copy all files from share drive to ftp server

Report •

January 20, 2010 at 22:57:10
mput \\Sharedrive|xyzfolder\*.*
typo? normally:
mput \\Sharedrive\xyzfolder\*.*

Report •

January 20, 2010 at 23:03:18


This is a typo error mput \\Sharedrive|xyzfolder\*.*
I am using mput \\Sharedrive\xyzfolder\*.* in my script but this is not working.


Report •

January 20, 2010 at 23:15:47
What IS it doing?

Helping others achieve escape felicity


Report •

Related Solutions

January 21, 2010 at 02:05:38

I am trying to open the FTP server and coping all the files from sharedrive to FTP server.mput \\Sharedrive\xyzfolder\*.* is my share drive details from where i need to copy the files.


Report •

January 21, 2010 at 04:13:25
Moras, you didn't mention what the problem is.

My guess (here we go) is that (DOS) FTP does not understand the //server/share syntax, but only a driveletter syntax. So, you need to map first :

net use Z: //server/share

.. then use mput Z:\*.*

No ?

edit: ... or the slashes in the other direction, whatever.

Report •

Ask Question