How to Call FTP from batch?

  • Thread starter Thread starter niladri chatterjee
  • Start date Start date
N

niladri chatterjee

How do I supply the User name / passord from a batch file

I did the following:-

cd c:\file_copy
ftp
connect 172.xx.y.zz
<actual username>
<actual pwd>
mGET *.PACKSLIP.DOC;*
copy /y C:\file_copy\*.* R:\PDFS\PACKING_SLIP
bye


Also, mGET from the DOS, prompts for 'Y' to enter for each file to copy. How
to supress confirmation like /y in Copy command?
 
Hi
It is not clear what you have installed as ftp.
FTP is not a command, it is either a client application or a server
application, and the Logon depends on each specific application.
Jack (MS, MVP-Networking)
 
How do I supply the User name / passord from a batch file

I did the following:-

cd c:\file_copy
ftp
connect 172.xx.y.zz
<actual username>
<actual pwd>
mGET *.PACKSLIP.DOC;*
copy /y C:\file_copy\*.* R:\PDFS\PACKING_SLIP
bye


Also, mGET from the DOS, prompts for 'Y' to enter for each file to copy. How
to supress confirmation like /y in Copy command?


Perhaps you should be looking at a command line utility like wget
http://www.gnu.org/software/wget/


Jim.
 
niladri said:
How do I supply the User name / passord from a batch file

I did the following:-

cd c:\file_copy
ftp
connect 172.xx.y.zz
<actual username>
<actual pwd>
mGET *.PACKSLIP.DOC;*
copy /y C:\file_copy\*.* R:\PDFS\PACKING_SLIP
bye


Also, mGET from the DOS, prompts for 'Y' to enter for each file to copy. How
to supress confirmation like /y in Copy command?

For scripting, you can't do better then use webdrive, mounts your ftp
server as a network drive, instantly enabling any file-aware program.

www.webdrive.com

Phil, London
 
Back
Top