View Single Post
  #4   Spotlight this post!  
Unread 10-06-2004, 09:03
wun's Avatar
wun wun is offline
Registered User
AKA: David Wolever
#0865 (Warp7)
Team Role: Programmer
 
Join Date: Dec 2003
Rookie Year: 2001
Location: Toronto
Posts: 84
wun will become famous soon enough
Send a message via AIM to wun Send a message via MSN to wun
Re: Remote Program Execution in Visual Basic

Quote:
Originally Posted by Astronouth7303
I do not believe you can have the files execute w/o something running on the other end.
Ah, but this is windows we are talking about!
Of corse you can run programs on a remote machine without installing anything on it! Thats how the blaster worm got so big! You can see if by going on any 2k box and using the command shutdown -i (-i is for interface, you can use --help if you wanna do it from the terminal).
I have a similar situation at my school, and we solved it in a couple of ways.
One of them was dameware (http://www.dameware.com/). Its not VB, but basically it lets you control lots of computers on your network.
The second way I solved the problem through VB was very simple, but probably not the most efficient. I simply wrote a program that would check a text file on the file-server ever minute or so, and if there was a 1 in it, it would 'lock' the computer it was on, and if it was a 0, it would 'un lock' the computer.
I realize this is an extremely inefficient way of doing things, but it was only took me a couple of hours to do.
I'm not sure if either of these solutions will work for you, but I thought I might as well mention them.
If you do get something working with winstock I would be interested in seeing it (if you dont mind), because I want to start playing around with it too (to write a similar applications).
__________________
Help Microsoft stop piracy. Use Linux!

I have three gmail invitations, message me if you want one