daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Oct 17th, 2018 61 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. private void CreatePorts(string command, bool ports)  
  2. {            
  3.    Process p = new Process();        
  4.  
  5.    p.StartInfo.WorkingDirectory = (Application.StartupPath + @"com0com");
  6.    p.StartInfo.FileName = @"setupc.exe";
  7.    p.StartInfo.UseShellExecute = false;
  8.    p.StartInfo.RedirectStandardOutput = true;
  9.    p.StartInfo.RedirectStandardInput = true;
  10.    p.StartInfo.LoadUserProfile = true;
  11.    p.StartInfo.Verb = @"runas";
  12.    p.StartInfo.CreateNoWindow = true;                                                
  13.    p.StartInfo.Arguments = " " + command;
  14.    p.Start();
  15. }
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