Do you ever find yourself doing the exact same sequence of computer tasks every morning? Opening the same three work folders, cleaning up temporary files, or checking your network status? In Windows, you can automate these repetitive tasks using a simple Batch Script (a text file ending with .bat).

What is a Batch Script?

Think of a batch script like a cooking recipe or a checklist. Instead of typing five commands one by one into the command line, you write them into a text file. When you double-click that file, Windows reads your checklist and runs every single command automatically from top to bottom.

Building Your Very First Batch Script

You don't need any special software—Notepad is all you need. Follow these easy steps:

  1. Press Windows Key + R, type notepad, and press Enter.
  2. Type the following beginner commands into Notepad:
@echo off
echo ===================================
echo Welcome to Your Morning Work Routine
echo ===================================

echo Checking current date and time...
date /t
time /t

echo.
echo All done! Have a productive day.
pause

Saving and Running Your Script

Now save the file properly:

  • Click File > Save As in Notepad.
  • Under Save as type, select All Files (*.*).
  • Name the file morning.bat and save it to your Desktop.

Go to your Desktop and double-click morning.bat. A black command window will pop open, greet you, show the current time, and pause until you press any key to close it!

3 Things to Remember

  • @echo off: Hides internal command clutter so only your clean messages appear.
  • Extension: Always save your file with the .bat extension, not .txt.
  • pause: Keeps the command window open so you have time to read your results.