Thursday, January 8, 2015

How to create a Clock using notepad.


Just follow these steps to create a clock using notepad and command prompt.


   
  •   Open Notepad. (Or Press Start + R > type Notepad > hit Enter)
  • Now copy the following code and paste it in the newly created text document.       
       @echo off
        Title DOS Based Date and Clock
        color b
        cls
        : Clock
        cls
        echo Current Date: %date%
        echo .............
        echo .............
        echo Current Time: %time%
        goto Clock

  • Save the file as Clock.bat (Save it on Desktop or anywhere you like).
  •  Now you will see a batch file named Clock.bat
  • Double click on it to see the result!
Customize the Code: You can also customize the code as below-
 You can change the Title of the code. Look at the title- Dos Based Date and Clock. You can use any name instead of the blue part.
  You can also change the color. Here I've used b for Aqua. You can use- 0 for black, 1 for  blue, 2 for green, thus you can test 3, 4, 5, 6, 7, 8, 9, a, c, d, e, f. Each one will give you a different color

Don't Forget To Visit http://www.howtowizard.blogspot.in/

0 comments:

Post a Comment

Blog Archive