computer help index
 
 
Search:
"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,450 tips!

Windows 95 and DOS

Batch FTP

SUMMARY: FTP multiple files simultaneously using the Windows 95 DOS prompt.

We use this trick to handle the MalekTips webpage - it is very useful!

Do you FTP a lot of files regularly? Do you maintain a website? If so, you can re-FTP the same files with a batch file using the Windows 95 DOS FTP command. Create a text file containing a list of your FTP commands. The first line must be your username, the second your password, and (optionally) the last line should be "quit." Now, when you invoke FTP from a DOS session, add " -s:batchfilename", substituting batchfilename with the name of the text file you created. Voila! Instant batch FTP session.

Here's a batch FTP session to the supposed domain idontknowwhere.com that gets three files and quits. The name of the text file in this example is 'batchgrab.' The command line for this example would be:

ftp -s:batchgrab idontknowwhere.com

The contents of 'batchgrab' could be as follows.

username
password
lcd c:\downloaddir
cd downloaddir
get file1.zip
get file2.zip
cd extras
get extrasfile1.zip
quit

Here's a batch FTP session to the supposed domain idontknowwhere.com that sends three files and quits. The name of the text file in this example is 'batchput.' The command line for this example would be:

ftp -s:batchput idontknowwhere.com

The contents of 'batchput' could be as follows.

username
password
lcd c:\webpage
cd www/html
put index.html
put site_map.html
cd contacts
put contact_list.html
quit

 

 
Add: Del.icio.us | Digg | Furl | My Yahoo!
 

Discuss This Tip

Print This Tip

Get E-Mail When New Tips are Online

Return to the Windows 95 and DOS page.


More in MalekTips:
Windows XP - Outlook ExpressMozilla Firefox - Security and PrivacyWindows Vista - Explorer



Stop Playing a Sound When New E-Mail Arrives[MODIFIED] Clear the Download Manager History or Disable ItShow File Extensions

RSS Feeds - Subscribe!
 

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Subscribe'.
 



( sample / details ) ( opt-out instructions )
 


 Free Offer! - Subscribe to the MalekTips computer help list and be one of the first to get new computer tips, articles, and download links! ( privacy policy )  ( opt-out instructions )
This page and its contents are copyright
©1997 - 2008 Envision Programming. ( copyright/disclaimer )

Home | Free Computer Help Newsletter! | Windows | Web Development | DOS and Batch Files | Removing Spyware
Digital Camera and Photography | Computer and Internet | Software | Microsoft Word
Computer Articles | About | Contribute a Tip | Link To Us! | Computer and Technology Links
RSS Feeds |  Contact Us | Advertising | Privacy Policy | Computer Help Forums