- #1
- 2,845
- 0
I'm trying to run a program, turn on QuickEdit (click-and-drag to copy, right-click to paste), and set the priority to BelowNormal.
The following will start a program at BelowNormal priority:
The following will start a program with QuickEdit, assuming the shortcut is set up appropriately:
But I can't find a way to do both. If I set the priority on the second, it sets it for the shortcut -- not the spawned process. (Not that I'm quick enough to grab it before it disappears, usually.)
Thoughts?
The following will start a program at BelowNormal priority:
Code:
Process pr = new Process();
pr.StartInfo.FileName = "blah.exe";
pr.Start();
pr.PriorityClass = ProcessPriorityClass.BelowNormal;
The following will start a program with QuickEdit, assuming the shortcut is set up appropriately:
Code:
Process pr = new Process();
pr.StartInfo.FileName = "blah.lnk";
pr.Start();
But I can't find a way to do both. If I set the priority on the second, it sets it for the shortcut -- not the spawned process. (Not that I'm quick enough to grab it before it disappears, usually.)
Thoughts?