Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- Process start = new Process();
- start.StartInfo.FileName = "cmd.exe";
- start.StartInfo.WorkingDirectory = "c:\\desktop\\test";
- start.StartInfo.Arguments = "/c start.bat";
- start.Start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement