taskmanager - How to set priority of another application in c# -
how should set priority of different application running on computer in c# win form. i'm little new website , coding together.
system.diagnostics.process.start("cmd.exe","wmic process name=\"hd-frontend.exe\" call setpriority 32");
is i've tried far. didn't work... :(
setpriority 32 appears linux call
what need process handle start
process myprocess = process.start("cmd.exe", "wmic process name=\"hd-frontend.exe\"");
then play priority once have handle
myprocess.priorityclass = realtime;
alternatively, define process before starting , edit priority before has started
myprocess.startinfo.useshellexecute = false; myprocess.startinfo.filename = "c:\\helloworld.exe"; myprocess.startinfo.createnowindow = true; myprocess.priorityclass = realtime; myprocess.start();
Comments
Post a Comment