Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Stefano Bonifazi
Mon, 19 Feb 2007 12:20
running programs on a different machine (URGENT)
Author: Stefano Bonifazi
Date: Mon, 19 Feb 2007 12:20
Date: Mon, 19 Feb 2007 12:20
12 lines
1567 bytes
1567 bytes
Hi all:) Sorry, maybe my question is very silly, because I think what I require is impossible because of security matters, anyway... I would like to open a process on another PC in my LAN. I have all the credentials for running it, because the same user exists on both machines (running WinXP). If I use CreateProcess to run the process giving \\OtherPC\somepath\myprog.exe as path, it is executed on my machine!:) ?? Mayb that is correct, but not what I want to accomplish ))... I would like to avoid to create a server that waits for a remote order to execute my program on the second machine.. is that possible? Thank U very much.. it is very urgent! Stefano B.
Re: running programs on a different machine (URGENT)
Author: Michel Leunen
Date: Mon, 19 Feb 2007 20:28
Date: Mon, 19 Feb 2007 20:28
23 lines
1836 bytes
1836 bytes
Stefano Bonifazi wrote: > I would like to open a process on another PC in my LAN. I have all the > credentials for running it, because the same user exists on both > machines (running WinXP). If I use CreateProcess to run the process > giving \\OtherPC\somepath\myprog.exe as path, it is executed on my > machine!:) ?? Mayb that is correct, but not what I want to accomplish ))... Yes, that's correct. RThat's the way it works. > I would like to avoid to create a server that waits for a remote order > to execute my program on the second machine.. is that possible? Sorry but AFAIK, it's the only way to do what you want. Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Re: running programs on a different machine (URGENT)
Author: Maurice Anderson
Date: Mon, 19 Feb 2007 20:40
Date: Mon, 19 Feb 2007 20:40
11 lines
1456 bytes
1456 bytes
> I would like to open a process on another PC in my LAN. I have all the > credentials for running it, because the same user exists on both machines > (running WinXP). Look into WMI, in particular Win32_process. See: http://groups.google.com/group/microsoft.public.win32.programmer.wmi/browse_thread/thread/37a329a71f87d2df/031c98ce9ace5c5d?lnk=st&q=remote+execution+wmi+Win32_Process+CoInitializeEx&rnum=4#031c98ce9ace5c5d For an example. -M-
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads