How to run a program in a remote machine

Reply

Join Date: Nov 2009
Posts: 2
Reputation: karthiknvs is an unknown quantity at this point 
Solved Threads: 0
karthiknvs karthiknvs is offline Offline
Newbie Poster

How to run a program in a remote machine

 
0
  #1
23 Days Ago
Hi all,

I am new to VB. i want to know how to connect to a remote server and run three batch files with some arguments, over there.
E.g.
machine Ip Address:xxx.xxx.xxx.xxx
username:test
password:test
I have to connect to the machine name and run the batch files.

Please suggest a method.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 810
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 147
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark
 
0
  #2
22 Days Ago
Connecting to the server is not the problem but when you do, any batch files will be run against the connecting computer and not against the server. To have the batch files run in the servers processes, you need to have the program reside on the server...



Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 2
Reputation: karthiknvs is an unknown quantity at this point 
Solved Threads: 0
karthiknvs karthiknvs is offline Offline
Newbie Poster
 
0
  #3
22 Days Ago
yeah i have the batch files in the Server itself. But they need some arguments to be run. (E.g. C:\abc.bat Argument). So please guide me, how to open the Remote machine and run the scripts.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 810
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 147
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark
 
0
  #4
21 Days Ago
Let me reiterate, if you want the bat file to run in the servers process you will need to run it from the server, which means you will have to have a program on the server to shell the bat file. So, what you will need to do is to create a program that can recieve instructions from your remote program.

Search, using your friends (yahoo, google, ask, answers, bing) for winsock. There are lots of examples out there.

Once you have that down, the rest should be easy.



Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC