chmac icon indicating copy to clipboard operation
chmac copied to clipboard

An error may be prompted while the script is run where double backslash is shown in the error message

Open wandersick opened this issue 5 years ago • 1 comments

Solution:

Remove backslash from working directory variable - UAC elevation

For cscript //NoLogo "!ChMacDir!Data\_elevate.vbs" "!ChMacDir!" "!ChMacDir!\chmac.bat" >nul 2>&1

!ChMacDir!\chmac.bat should be !ChMacDir!chmac.bat

wandersick avatar Jul 21 '20 11:07 wandersick

In my test, the additional backslash should not affect functionality as Command Prompt should still handle things correctly despite this. The error in the title is non-existent. It would not cause an error. Therefore, this is low priority.

wandersick avatar Jul 31 '20 13:07 wandersick