Advertisement
HeilTec

HardLink.bat

Sep 24th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.58 KB | None | 0 0
  1. @echo off
  2. if "%1"=="" goto :help
  3. if "%1"=="-h" goto :helpop
  4. if not "%2"=="" goto toomany
  5.  
  6. call :makelink %1
  7.  
  8. goto :done
  9.  
  10. :makelink
  11.   echo.                      -------- %1 ----------
  12.   if exist ..\..\FactorioH\mods\%~nx1 echo %~n1 is already installed
  13.   if not exist ..\..\FactorioH\mods\%~nx1 mklink /H ..\..\FactorioH\mods\%~nx1 "%1"
  14. goto :eof
  15.  
  16. :toomany
  17. echo %2- not expected
  18. echo hardlink one at the time.
  19.  
  20. :helpop
  21. echo HARDLINK mod-zip-file
  22. :help
  23. echo Drop the mod-zip-file on this bat-file to make a hardlink
  24. echo File wil be linked into active mod-pack
  25. :done
  26. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement