Click here to Skip to main content
13,295,192 members (73,929 online)
Click here to Skip to main content
Add your own
alternative version


13 bookmarked
Posted 14 Apr 2004

Servex - using batch files for remote ftp

, 14 Apr 2004
Rate this:
Please Sign up or sign in to vote.
Remote Commands on a Computer


This uses a batch file through an ftp site and communicates information through the site. The server file will loop and keep trying to execute a file on the ftp site the client will place that file on the site and the server will finally execute it after it really exists. In the Client you type the .bat file you wish to execute on the remote computer. You can make it send a response to check for a connection as shown below.

Using the code

Open dos and get into the directory the client is in, type the filename of the client then before you hit enter hit space and then the batch file you wish to execute on remote computer. After you have done that hit enter. I don't like doing it that way but I did that to make it compatible to Win95/98. For this to actually work the client must be opened first.

echo open>ftp.txt
echo servex>>ftp.txt
echo password>>ftp.txt ("password is the password")
echo put respond.bat>>ftp.txt
echo bye>>ftp.txt
echo set resp=here>respond.bat
ftp -s:ftp.txt
delete ftp.txt
delete respond.bat

Points of Interest

I have always loved using ms-dos to create programs because you can do practically anything with them, if you put your mind to it. Well i spent about 10 minutes on the client/server program, and tested it, it seems to work just fine. I highly recommend batch programming and if you have any questions over any ms-dos stuff just let me know.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

David Q
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

Generali want to make telnet throw batch file Pin
lamia803-Jun-08 3:29
memberlamia803-Jun-08 3:29 
Generalhi want to connect to telnet server via batch Pin
vishal3346-Sep-07 23:20
membervishal3346-Sep-07 23:20 
GeneralCopy Files From My PC and FTP it into my telnet directory Using DOS Batch Program Pin
AnAd21-Dec-04 15:10
memberAnAd21-Dec-04 15:10 
GeneralRe: Copy Files From My PC and FTP it into my telnet directory Using DOS Batch Program Pin
lamia803-Jun-08 3:37
memberlamia803-Jun-08 3:37 
Generalcheck if file exists in remote site through FTP Pin
Hemanth00718-May-04 5:58
memberHemanth00718-May-04 5:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 15 Apr 2004
Article Copyright 2004 by David Q
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid