Home All Groups Group Topic Archive Search About

How to Call FTP from batch?

Author
7 May 2009 5:03 PM
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?

Author
8 May 2009 4:37 AM
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)

Show quoteHide quote
"niladri chatterjee" <niladrichatter***@discussions.microsoft.com> wrote in
message news:4C533C93-16DD-43E3-95A1-D630C6BEC147@microsoft.com...
> 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?
>
>
>
Author
8 May 2009 1:13 PM
James Egan
On Thu, 7 May 2009 10:03:10 -0700, niladri chatterjee
<niladrichatter***@discussions.microsoft.com> wrote:

Show quoteHide quote
>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.
Author
23 May 2009 9:03 AM
Philip Herlihy
niladri chatterjee wrote:
Show quoteHide quote
> 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