Skip to content

Instantly share code, notes, and snippets.

@RDCH106
Last active February 8, 2016 08:59
Show Gist options
  • Save RDCH106/fc1537a73e32df82e58a to your computer and use it in GitHub Desktop.
Save RDCH106/fc1537a73e32df82e58a to your computer and use it in GitHub Desktop.
Windows .BAT script for testing differences between CALL and START
@ECHO OFF
ECHO Execution using CALL
ECHO -------------------------------------------
ECHO Main execution running...
ECHO Calling to ping...
call ping google.es
ECHO.
ECHO Continue main execution
TIMEOUT 5 > NUL
ECHO Main execution finished!
PAUSE
cls
ECHO Execution using START
ECHO -------------------------------------------
ECHO Main execution running...
ECHO Calling to ping...
start /b ping google.es
ECHO.
ECHO Continue main execution
TIMEOUT 5 > NUL
ECHO Main execution finished!
PAUSE
cls
ECHO Execution using START with waiting
ECHO -------------------------------------------
ECHO Main execution running...
ECHO Calling to ping...
start /w ping google.es
ECHO.
ECHO Continue main execution
TIMEOUT 5 > NUL
ECHO Main execution finished!
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment