Advertisement
Guest User

batch-file-current-dir-2

a guest
Apr 30th, 2015
513
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >log.txt (
  2.  
  3.     call npm list -g download
  4.     if ERRORLEVEL 1 (
  5.         npm install -g download
  6.     )
  7.  
  8.     "C:\Program Files\7-Zip\7z.exe" x nwjs-v0.12.1-win-x64.zip > nul
  9.  
  10.     REM first cd command into subfolder
  11.  
  12.     cd nwjs-v0.12.1-win-x64
  13.     echo %cd%
  14.  
  15.     "C:\Program Files\7-Zip\7z.exe" x sg.zip > nul
  16.  
  17.     REM second cd command into subfolder of first subfolder
  18.  
  19.     cd sg
  20.     echo %cd%
  21.  
  22.     REM third and fourth cd commands back up to where we started
  23.  
  24.     cd ..
  25.     echo %cd%
  26.     cd ..
  27.     echo %cd%
  28.     rd /s /q nwjs-v0.12.1-win-x64
  29.  
  30.     REM all four echo %cd% commands print the same thing (folder where we started)
  31.  
  32. )
  33.  
  34. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement