Computing.Net > Forums > Disk Operating System > FTP script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FTP script

Reply to Message Icon

Name: jul
Date: July 17, 2003 at 12:22:06 Pacific
OS: win200
CPU/Ram: 4
Comment:

Hi,

Can anybody provide commands that I need to run for putting file to FTP. At this case I have proxy between my PC and FTP server. I know proxy_name, id and pwd for proxy.
When I use commercial FTP client I can do it. How can I do it with DOS script?

Thanks




Sponsored Link
Ads by Google

Response Number 1
Name: Michael Metzger
Date: July 21, 2003 at 12:31:35 Pacific
Reply:

From the bat file.

cd dirname
cd dirname
ftp -s:[path]filename

Example:
cd \
cd c:\
ftp -s:c:\ftpcomm.txt

In the ftpcomm.txt put your ftp commands. First line should be username then carriage return then password then carriage return. Then ftp commands mget *.* etc. Then close the connection with bye.
The batch file will run then run the ftpcomm.txt and return control back to the dos bat file that started the whole process. Any questions just email.

-mmetzger



0
Reply to Message Icon

Related Posts

See More


dos script DOS Help with Find comman...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: FTP script

FTP SCRIPTING & ERROR CAPTURING www.computing.net/answers/dos/ftp-scripting-amp-error-capturing/13552.html

DOS FTP Script www.computing.net/answers/dos/dos-ftp-script-/11678.html

FTP script www.computing.net/answers/dos/ftp-script/13821.html