Closed wandersick closed 4 years ago
Solution:
Remove backslash from working directory variable - UAC elevation
For cscript //NoLogo "%WorkingDir%\_elevate.vbs" "%WorkingDir%" "%WorkingDir%\FolderTemplateProvisioner.bat" >nul 2>&1
cscript //NoLogo "%WorkingDir%\_elevate.vbs" "%WorkingDir%" "%WorkingDir%\FolderTemplateProvisioner.bat" >nul 2>&1
%WorkingDir%\_elevate.vbs
%WorkingDir%_elevate.vbs
%WorkingDir%\FolderTemplateProvisioner.bat
%WorkingDir%FolderTemplateProvisioner.bat
Fixed in v1.2 (in my test, this may not affect functionality as Command Prompt should not be handle things differently even with this issue)
v1.2
Solution:
Remove backslash from working directory variable - UAC elevation
For
cscript //NoLogo "%WorkingDir%\_elevate.vbs" "%WorkingDir%" "%WorkingDir%\FolderTemplateProvisioner.bat" >nul 2>&1
%WorkingDir%\_elevate.vbs
should be%WorkingDir%_elevate.vbs
%WorkingDir%\FolderTemplateProvisioner.bat
should be%WorkingDir%FolderTemplateProvisioner.bat