View Single Post
  #2   Spotlight this post!  
Unread 09-06-2004, 10:56
Jeff Waegelin's Avatar
Jeff Waegelin Jeff Waegelin is offline
El Jefe de 148
AKA: Midwest Refugee
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Aug 2001
Rookie Year: 2001
Location: Greenville, TX
Posts: 3,132
Jeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond reputeJeff Waegelin has a reputation beyond repute
Re: Remote Program Execution in Visual Basic

Quote:
Originally Posted by Greg
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.
Can you point me towards any tutorials you think are better than others?
__________________
Jeff Waegelin
Mechanical Engineer, Innovation First Labs
Lead Engineer, Team 148 - The Robowranglers