I assume that you are just trying to execute these commands one by one in a batch file?
If you need to open notepad .
Copy and paste your commands into notepad, as you are in your question, and click File -> Save As .
Give the file the name ie MyBatchFile.bat . Under the file name field, change the file type to All Files . .bat at the end of the file name will instruct the PC to open it as a batch file.
Batch files are opened by command line by default, so all you have to do is run it.
source share