View Single Post
Old 7th January 2005, 01:25   #42  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
I finally resorted to a batchfile and some process list trickery to get the process priority down
you can control the command shell

http://www.microsoft.com/technet/arc.../shellscr.mspx

Code:
List<string> jobs = new List<string>(new string[] {"notepad", "notepad"});
using (StreamWriter sw = new StreamWriter("jobs.bat")) {
	sw.Write(string.Join(Environment.NewLine, jobs.ToArray()));
}
Process.Start("cmd", "/k start /wait /low /b jobs.bat");
stax76 is offline