ClickSave asin the dropdown menu.

jot down a name for the script, like test.bat, and clickSave.

Locate the file you just saved, and double click it.

A screenshot of opening Notepad in Windows 10.

Anything you could key in manually into the command prompt, you could put in a batch file.

The file will then execute each command, in order, from the top to the bottom.

This file checks your internet connection using ipconfig and then pauses so you’re able to examine it.

A batch file in Notepad.

It then pings google.com.

Finally, it gives you the option to run thetracert commandif you want.

It then pauses a second time, allowing you to check the results before closing the window.

A batch file written in Notepad.

Saving a batch file in Notepad.

Naming a batch file in Notepad.

A batch file on the Windows 10 desktop.

An executed batch file in Windows 10.

A batch file showing how comments are hidden.

A batch file example output.