wandersick / ws-folder-template-provisioner

This Windows batch script provisions (copies) new folders with exact permissions and content from a specified existing folder (template) based on the information (first name and last name) inputted by a user via its command-line interface.
https://tech.wandersick.com/2020/09/folder-template-provisioner.html
4 stars 0 forks source link

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

Closed wandersick closed 4 years ago

wandersick commented 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

wandersick commented 4 years ago

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)