daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jun 18th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top