Computing.Net > Forums > Programming > FTP DOS Batch File

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 DOS Batch File

Reply to Message Icon

Name: Trillabee
Date: May 14, 2007 at 02:58:41 Pacific
OS: Windows
CPU/Ram: n/a
Product: n/a
Comment:

I hope that someone can help me. I am new to writing batch files and I am not quite sure how to write the following code. Any help would be appreciated. I would like a batch file to connect to a server using ftp, then write a list of filenames from the ftp folder into a text file. The text file can either be written locally or in the ftp folder itself as long as I can get access to it. Please can someone help.
Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: May 14, 2007 at 03:12:13 Pacific
Reply:

::== GETmyDIR.bat
@echo off > %0.ftp

>> %0.ftp echo o mysite.com
>> %0.ftp echo username
>> %0.ftp echo password
>> %0.ftp echo dir
>> %0.ftp echo bye

ftp -s:%0.ftp > %0.txt
::==


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: Trillabee
Date: May 14, 2007 at 05:02:56 Pacific
Reply:

That is fantastic. Thank you so much.
Trillabee


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: FTP DOS Batch File

DOS Batch File Commands www.computing.net/answers/programming/dos-batch-file-commands/14637.html

Spilt a numeric value in dos batch file www.computing.net/answers/programming/spilt-a-numeric-value-in-dos-batch-file/19115.html

editing dos batch file www.computing.net/answers/programming/editing-dos-batch-file/20208.html