Basic Date & Time Batch File

This instructable only requires the ability to copy/paste and to save as a batch file which I will show you. Remember this is only a simple batch program, and I did that so you can make your own variations and hopefully send me the code in the comments. Enough introduction; let's get to the program!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: The Actual Program

This is the real program. Please feel free to copy/paste it into your notepad or notepad++.

@echo off

echo %date% %time%


goto start

One variation is to change the color of the program. You can find out how to do it in a tutorial I will make after this one.

Step 2: Saving It

After you are done copying it, you must save it.

Go to File

Save As

Save it in any folder you want or even desktop. I would prefer to make a separate folder for batch files.

Save it as Clock.bat (It seriously doesn't matter what you name it as long as it has .bat on the end as shown in the picture.

Step 3: THE END

This is the end of this tutorial. I hope you enjoyed and be sure to send your variations in the comments. Goodbye!

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest