#Step up your CMD game
Create a directory for your scripts, I suggest “C:\Scripts”
- Hit WINDOWS key (to search) > type cmd > right click on cmd.exe > pin to taskbar
- Right click on cmd on taskbar > right click on “Command Prompt” > click Properties
- Under “Target” append the text /K “cd C:\Scripts”
- Click “Advanced…”
- Check the “Run as administrator” checkbox
- OK out of all the dialogs
- Click on the CMD taskbar icon (Or use WINDOWS+SHIFT+# where # is the index on your taskbar
Voila, you are in your scripts folder. You can drop scripts here that you use frequently to automate more.
Another small trick: When you are about to run a command you find yourself doing often do it this way instead:
- type out the command as you normall would, but DON’T execute!
- HOME back to the beginning of the command
- type ECHO in front of the command
- END to the end of the command
- Type > something.bat
- Execute the command
This will write your command out to a file, you can try running it (something.bat) and edit it as needed etc.