|
-
Jul 2nd, 2001, 09:45 AM
#1
Thread Starter
New Member
Setting which computer to display a program
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.
-
Jul 3rd, 2001, 04:41 PM
#2
Addicted Member
You can do that using WMI (which comes built into W2K, by the way...). It would look something like this:
Code:
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.
Building A Better Body Albeit Left Out Under Intense Extrapolation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|