Cmd.exe
Use the Up/Down arrow keys to scroll through command history. Cancel Command: Press Ctrl + C to stop a running command.
A batch file is a plain text file containing a series of commands that cmd.exe executes in order. Open Notepad . Type your commands, for example: @echo off echo Starting system check... ipconfig /all pause Use code with caution. Copied to clipboard Click File > Save As . Name it script.bat and change "Save as type" to All Files . Double-click script.bat to run it. 4. Useful Tips cmd.exe
Click the Start menu, type cmd or command , and select "Command Prompt". Use the Up/Down arrow keys to scroll through command history
Press Windows Key + R , type cmd , and press Enter. Open Notepad
Type /? after any command (e.g., dir /? ) to see its usage instructions.
Search cmd , right-click "Command Prompt" and select "Run as administrator". 2. Essential Commands to Know dir : Lists files and folders in the current directory. cd [path] : Changes the current directory. md [folder_name] : Creates a new directory. cls : Clears the screen. copy [file1] [file2] : Copies files. del [file] : Deletes files. help : Displays a list of available commands. 3. Drafting a Batch Script (.bat)
Type the first few letters of a file or folder name and press Tab to auto-complete it.