mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-15 14:19:29 +00:00
Implemented another way to get current process filename
This commit is contained in:
@@ -391,7 +391,7 @@ namespace SystemExtensions.Security
|
||||
ProcessStartInfo proc = new ProcessStartInfo();
|
||||
proc.UseShellExecute = true;
|
||||
proc.WorkingDirectory = Environment.CurrentDirectory;
|
||||
proc.FileName = Process.GetCurrentProcess().StartInfo.FileName;
|
||||
proc.FileName = Process.GetCurrentProcess().MainModule.FileName;
|
||||
proc.Verb = "runas";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user