-
keeps a command console window open
cmd /k app.exe
-
starts an app and waits until it's closed
start /wait chrome.exe http://google.com
-
%1
- first argument,%2
- second,%*
- all -
iterates through the range of numbers starting at
5
by increment of7
not more than100
for /l %%x in (5, 7, 100) do echo %%x
Last active
May 20, 2018 02:53
-
-
Save empjustine/c0813d79979b5c006fd1d069651151c3 to your computer and use it in GitHub Desktop.
Windows batch files cheatsheet
This file contains hidden or 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
sc config wuauserv start= disabled | |
net stop wuauserv & REM Windows Update | |
net stop appidsvc | |
net stop BITS & REM Background Intelligent Transfer Service | |
net stop UsoSvc & REM Update Orchestrator Service for Windows Update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment