Guest User

Untitled

a guest
Jun 18th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. System.Diagnostics.ProcessStartInfo start =
  2. new System.Diagnostics.ProcessStartInfo();
  3. start.FileName = dir + @"Myprocesstostart.exe";
  4. start.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
  5.  
  6. [DllImport("kernel32.dll")]
  7. static extern bool FreeConsole();
  8.  
  9. yourprocess.StartInfo.UseShellExecute = false;
  10. yourprocess.StartInfo.CreateNoWindow = true;
Add Comment
Please, Sign In to add comment