View Single Post
  #1   Spotlight this post!  
Unread 09-06-2004, 10:46
Greg's Avatar
Greg Greg is offline
Registered User
FRC #1075 (Sinclair Sprockets)
Team Role: College Student
 
Join Date: Nov 2002
Rookie Year: 2003
Location: Whitby, Ontario, Canada
Posts: 108
Greg is on a distinguished road
Send a message via ICQ to Greg Send a message via MSN to Greg
Re: Remote Program Execution in Visual Basic

Well, there are several ways to do this. One is to write a VB app that will run in IIS on the target machine. The application will create a web page that you can go to to trigger the job. However, this requires setting up web servers on the machines, and you probably dont want to have 5 web servers

Another way would be to write a program that uses Winsock. On the machines where you want to run the batch you set up a "server" program that opens a specific port and waits for a command. It should start with Windows. On your machine you have a "client" program that can connect to that program on that port and send it the command. You'll probably also want a password of some sort. There's quite a number of Winsock tutorials online.