Click here to Skip to main content
15,891,633 members
Home / Discussions / C#
   

C#

 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult18-Sep-07 15:01
mvePIEBALDconsult18-Sep-07 15:01 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak18-Sep-07 16:16
mveDave Kreskowiak18-Sep-07 16:16 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult18-Sep-07 16:31
mvePIEBALDconsult18-Sep-07 16:31 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak18-Sep-07 17:20
mveDave Kreskowiak18-Sep-07 17:20 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 9:39
Don Dang19-Sep-07 9:39 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak19-Sep-07 11:58
mveDave Kreskowiak19-Sep-07 11:58 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 12:27
Don Dang19-Sep-07 12:27 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak19-Sep-07 15:16
mveDave Kreskowiak19-Sep-07 15:16 
donjuanwu wrote:
when you said the code is loading the .EXE from the path, are you saying the code is copy the .EXE from the specified path and execute the .EXE from the local machine?


The .EXE is being loaded and run on the local machine, just as if you ran it from your own hard drive.


donjuanwu wrote:
I would like to execute the .EXE from the remote machine


You mean execute the .EXE ON the remote machine?? No, there is no .NET class that does this because it's a HUGE security risk.

It CAN be done though, using WMI's Win32_Process[^] class, though with very large restrictions. The process you launch cannot be interactive, meaning there will be no user interface showing on the remote machine, and it runs with limited access to machine resources.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult19-Sep-07 17:52
mvePIEBALDconsult19-Sep-07 17:52 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Dave Kreskowiak20-Sep-07 1:56
mveDave Kreskowiak20-Sep-07 1:56 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 9:11
Don Dang19-Sep-07 9:11 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang19-Sep-07 9:20
Don Dang19-Sep-07 9:20 
AnswerRe: Execute a remote .exe file with switches using Proccess class Pin
ChrisKo18-Sep-07 11:19
ChrisKo18-Sep-07 11:19 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang18-Sep-07 11:58
Don Dang18-Sep-07 11:58 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
ChrisKo18-Sep-07 12:26
ChrisKo18-Sep-07 12:26 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
Don Dang18-Sep-07 12:36
Don Dang18-Sep-07 12:36 
GeneralRe: Execute a remote .exe file with switches using Proccess class Pin
ChrisKo18-Sep-07 13:46
ChrisKo18-Sep-07 13:46 
AnswerRe: Execute a remote .exe file with switches using Proccess class Pin
PIEBALDconsult19-Sep-07 13:32
mvePIEBALDconsult19-Sep-07 13:32 
GeneralRegular Expressions [modified] Pin
#realJSOP18-Sep-07 10:27
mve#realJSOP18-Sep-07 10:27 
GeneralRe: Regular Expressions Pin
Jonathan [Darka]18-Sep-07 10:30
professionalJonathan [Darka]18-Sep-07 10:30 
GeneralRe: Regular Expressions Pin
#realJSOP18-Sep-07 10:36
mve#realJSOP18-Sep-07 10:36 
GeneralRe: Regular Expressions Pin
Jonathan [Darka]18-Sep-07 10:53
professionalJonathan [Darka]18-Sep-07 10:53 
GeneralRe: Regular Expressions Pin
Kevin McFarlane18-Sep-07 10:39
Kevin McFarlane18-Sep-07 10:39 
GeneralRe: Regular Expressions Pin
Chris Losinger18-Sep-07 10:42
professionalChris Losinger18-Sep-07 10:42 
GeneralRe: Regular Expressions Pin
#realJSOP18-Sep-07 10:51
mve#realJSOP18-Sep-07 10:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.