Last active
February 8, 2016 08:59
-
-
Save RDCH106/fc1537a73e32df82e58a to your computer and use it in GitHub Desktop.
Windows .BAT script for testing differences between CALL and START
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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