code_junkie

starting a program on a remote machine in wmi, but also opening the apps window (in c#)

Nov 13th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class Program
  2. {
  3. static void Main( string[ ] args )
  4. {
  5. ProcessStartInfo startInfo = new ProcessStartInfo();
  6. startInfo.CreateNoWindow = false;
  7. startInfo.UseShellExecute = false;
  8. startInfo.FileName = "C:\folder\Mexe.exe";
  9. startInfo.WindowStyle = ProcessWindowStyle.Normal;
  10. //p.MachineName="server";
  11. //p.Start(startInfo);
  12. Process p = Process.Start( startInfo );
  13. }
  14. }
Add Comment
Please, Sign In to add comment