mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
properly quote string arguments to copyutil in case there are spaces in the path
This commit is contained in:
parent
9a2b766aad
commit
aaf69d1aff
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ namespace WinUI
|
|||
String curPath = System.Reflection.Assembly.GetEntryAssembly().Location;
|
||||
int index = curPath.LastIndexOf("\\");
|
||||
curPath = curPath.Substring(0, index);
|
||||
ProcessStartInfo startInfo = new ProcessStartInfo(curPath + "\\copyutil.exe", globalZtDir + " " + localZtDir);
|
||||
ProcessStartInfo startInfo = new ProcessStartInfo(curPath + "\\copyutil.exe", "\""+globalZtDir+"\"" + " " + "\""+localZtDir+"\"");
|
||||
startInfo.Verb = "runas";
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue