PDA

Click to See Complete Forum and Search --> : Setting which computer to display a program


JayLogicon
Jul 2nd, 2001, 09:45 AM
Does anybody know if there is a way to set a program to run on a different computer using an IP address or something like that.

This is what I'm trying to do: Using RSH shell in unix, tell Windows 2000 to execute a program. The program will run on the NT box, but no GUI will display. So all execution will run, but not GUI will display. So what I was thinking of doing is, somehow inform the VB program of the NT IP address, and when it runs, it will display the GUI on that NT machine. It's worth a shot.:D

Babbalouie
Jul 3rd, 2001, 04:41 PM
You can do that using WMI (which comes built into W2K, by the way...). It would look something like this:


Set Process = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & servername & "\root\cimv2:Win32_Process")
result = Process.Create(Text1.Text, Null, Null, processid)


Where servername is the computer to start the program on, and Text1.Text is the command to be executed.