Results 1 to 2 of 2

Thread: Setting which computer to display a program

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Rhode Island
    Posts
    5

    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.
    Jason Brown

  2. #2
    Addicted Member Babbalouie's Avatar
    Join Date
    Jan 2001
    Location
    On the bright, blue sea...
    Posts
    197
    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
  •  



Click Here to Expand Forum to Full Width