Advertisement
ReznoRMichael

Create Directory Junction easy .bat script

Feb 6th, 2021 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.80 KB | None | 0 0
  1. REM Example:
  2. REM mklink /J "C:\TheseFolders\MustExist\ThisLastFolderMustNotExist\" "E:\PathTo\RealFolder\WhereYouWantTo\StoreFilesInstead\"
  3. REM ==========================================================================================================================
  4. REM FIRST PATH
  5. REM Link to Folder (last folder in the path must not exist when running the script!).
  6. REM This is the folder that you don't want to store your actual files in, and it will not physically exist on the disk.
  7. REM This will be just a shortcut (door) which will LINK to another folder, that actually exists on a disk.
  8. REM ==========================================================================================================================
  9. REM SECOND PATH
  10. REM Real Folder on the Disk that the link will point to (must be created manually before OR after running the script)
  11. REM ==========================================================================================================================
  12. REM DELETE DIRECTORY JUNCTION
  13. REM If you wish to delete the created Directory Junction just delete the Link folder (last folder in the first path).
  14. REM It will have an arrow on the icon, that indicates it is just a link/shortcut. The real folder will be untouched.
  15. REM ==========================================================================================================================
  16. REM /J = Means: Create a new Directory Junction.
  17. REM ==========================================================================================================================
  18. REM Made by the creator of Hollow Knight Save Game Completion Analyzer: https://reznormichael.github.io/hollow-knight-completion-check/
  19.  
  20. cls
  21. mklink /J "%USERPROFILE%\AppData\LocalLow\Team Cherry\Hollow Knight\" "E:\Backup\Alternative Hollow Knight Save Folder\"
  22. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement