Guest User

Untitled

a guest
Jan 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @ECHO OFF
  2. SETLOCAL ENABLEEXTENSIONS
  3.  
  4. ::Boilderplate
  5. ::detect if invoked via Window Explorer
  6. SET interactive=1
  7. ECHO %CMDCMDLINE% | FIND /I "/c" >NUL 2>&1
  8. IF %ERRORLEVEL% == 0 SET interactive=0
  9.  
  10. ::name of this script
  11. SET me=%~n0
  12. ::directory of script
  13. SET parent=%~dp0
  14.  
  15.  
  16. ::if invoked from windows explorer, pause
  17. IF "%interactive%"=="0" PAUSE
  18. ENDLOCAL
  19. EXIT /B 0
Add Comment
Please, Sign In to add comment