
When you use this command, Notepad automatically opens as if you had loaded it directly from the Start menu or the Start screen. When you open the command prompt in Windows 7, press Windows-R, press Cmd., or select Command Prompt - and type Notepad to run the program. How Do I Run Notepad From Command Prompt? Unless the prompt’s current directory is the full directory of the file, you must include it. The file should be entered in quotes, such as Notepad: C:/Documents/File. In this case, you would type “script.bat”.Ī command prompt can be used to generate a text file. Finally, type the name of the script to run it. For example, if the script is saved in the “C:\scripts” folder, you would type “ cd C:\scripts“. Next, navigate to the folder where the script is saved using the “cd” command.

Assuming you have a script saved in notepad named “script.bat”: To run a notepad script in command prompt, first open command prompt by going to Start > Run and typing “cmd”.
