Advertisement
Guest User

Untitled

a guest
May 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public void RunCmd()
  2. {
  3. string strCmdText;
  4. strCmdText = "/C [enter command stuff here]";
  5. System.Diagnostics.Process.Start("CMD.exe", strCmdText);
  6. }
  7.  
  8. strCmdText = "/K [enter command stuff here]";
  9.  
  10. public void RunCmd()
  11. {
  12. string strCmdText = "/C "[enter command stuff here]" & "SLEEP 2"";
  13. System.Diagnostics.Process.Start("CMD.exe", strCmdText);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement