Click here to Skip to main content
16,009,238 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
i am french, i dont speak english very well.

i want run an .exe application on my pc via a c# program .the executable is on a remote server in the same domain.
i have admin access on the server.

i' m trying WMI but it doesn't working

Can you help me ?
Posted
Comments
Maciej Los 21-Nov-14 11:00am    
OK, what have you tried?
BillWoodruff 21-Nov-14 12:27pm    
If Dinesh's solution (here) doesn't solve this for you, please add to your question here what requirements your server enforces for you to start a program remotely ?

Even if you are using as "Admin:" does the server require some special measures ... I ask this because (obviously) allowing remote execution of an '.exe file could have security risks.
Dave Kreskowiak 21-Nov-14 13:25pm    
One word of warning. You didn't say what kind of application you're trying to run on the remote machine, but it can NOT be an interactive application, meaning that it cannot put up any kind of user interface on the remote machine. This is a security violation and is not allowed.

1 solution

Hi

Try this one
C#
ProcessStartInfo startInfo = new ProcessStartInfo();
            startInfo.FileName = "WINWORD.EXE";
            startInfo.Arguments ="";
            startInfo.WorkingDirectory = "";
            startInfo.Domain = "";
            startInfo.Password = new System.Security.SecureString();
            startInfo.UserName = "";
            Process.Start(startInfo);


Thanks
Dinesh Sharma
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900