Advertisement
Ghostyyy

gead

Feb 25th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. private void button1_Click(object sender, EventArgs e)
  2. {
  3. Process start = new Process();
  4. start.StartInfo.FileName = "cmd.exe";
  5. start.StartInfo.WorkingDirectory = "c:\\desktop\\test";
  6. start.StartInfo.Arguments = "/c start.bat";
  7. start.Start();
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement