Q

Automatically connect to FTP and upload files

I want to write a simple DOS program (.bat) to connect to FTP and automatically upload files. Can I connect to FTP using a batch program and, if so, how do I do it? Also, I want to pass the name of the file while running the batch program.
As you didn't indicate which operating system you are using, I'll assume you're using an NT-based system (Windows NT4/2000/XP/.NET). The FTP.EXE command line program will do everything you want. In fact, the -s option allows you to pass in a text file of commands to execute, so you don't even have to go to the trouble of writing a batch file.
This was last published in May 2002

Dig Deeper on Windows Operating System Management

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close