dvk

mklink_d2.bat

dvk
Nov 25th, 2018
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal
  3. cls
  4. set "originalD2Folder=D:\Games\Diablo2\"
  5. pushd %~dp0
  6. for /f "usebackq delims=" %%i in (`dir /b /a-d %originalD2Folder%`) do mklink "%%i" "%originalD2Folder%%%i"
  7. echo ===
  8. echo END
  9. pause
  10. endlocal
RAW Paste Data