Click here to Skip to main content
15,879,239 members
Articles / Operating Systems / Windows
Article

Servex - using batch files for remote ftp

Rate me:
Please Sign up or sign in to vote.
3.58/5 (3 votes)
14 Apr 20041 min read 69.2K   718   13   5
Remote Commands on a Computer

Introduction

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.europe.webmatrixhosting.net>>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.

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generali want to make telnet throw batch file Pin
lamia803-Jun-08 2:29
lamia803-Jun-08 2:29 
Generalhi want to connect to telnet server via batch Pin
Chetan Sheladiya6-Sep-07 22:20
professionalChetan Sheladiya6-Sep-07 22:20 
GeneralCopy Files From My PC and FTP it into my telnet directory Using DOS Batch Program Pin
AnAd21-Dec-04 14:10
AnAd21-Dec-04 14:10 
GeneralRe: Copy Files From My PC and FTP it into my telnet directory Using DOS Batch Program Pin
lamia803-Jun-08 2:37
lamia803-Jun-08 2:37 
Generalcheck if file exists in remote site through FTP Pin
Hemanth00718-May-04 4:58
Hemanth00718-May-04 4: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.