How to Call FTP from batch?

  • Thread starter niladri chatterjee
  • 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?
 
J

Jack [MVP-Networking]

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)
 
J

James Egan

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.
 
P

Philip Herlihy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top