mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
properly quote string arguments to copyutil in case there are spaces in the path
This commit is contained in:
parent
9a2b766aad
commit
aaf69d1aff
@ -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…
Reference in New Issue
Block a user