Some methods on this site involve creating a Windows batch file to execute shell commands in series. Here is a basic tutorial on how to create such a file and edit its source code on computers with Windows XP and later.
- First, you must open Notepad (Start –> Run –> notepad or Search –> notepad)
- Then, open the file menu and click Save As.
- Pull down the Save as Type menu and select All Files (*.*).
- Finally, name your file, put .bat after it, and save it anywhere.
- To edit the program file you just created, right click on the batch file (.bat) and select Edit. You can now edit the source code in order to paste given code samples.
- After editing, save the file. You can now run the script anytime like you would a regular program.
If the script needs to be “elevated”, it requires administrator privileges. You can run the script in an elevated shell by right-clicking and selecting “Run as administrator”.