Advertisement
dcandygmailcom

This batch adds the folder the file is in to the user' path

Feb 15th, 2019
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. REM One file follows
  2. REM _AddThisFolderToPath.bat
  3. REM This batch file adds the folder the batch file is in to the user's path for future command prompts
  4. REM If the folder is already in the user's path the command is ignored
  5. Setx path "%path%;%~dp0"
  6. REM Optional add to the current path setting
  7. REM Set path "%path%;%~dp0"
  8. Pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement