Saturday 8 March 2014

How to Make a Command Prompt Clock

How to Make a Command Prompt Clock

If you want to show off by programming a clock that opens in command prompt, this is how to do it. (Ignore the huge spacing I've made between the lines for the :CLOCK line and don't use copy-paste. It should only be one new row for each code line but the wikihow writing interface messed up the entire code and I had a hard time making it look almost normal.)

 Steps

  1. Open notepad (If you have Windows XP or older you could also open the built in DOS-editor by starting command prompt, writing edit.com and pressing enter).


  2. Write the following in the new document:

  3. Save it as clock.bat (Other names can also be used as long as the ending of the name is .bat). (If you are using notepad you might need to click the scroll menu that says "text document" and instead select "all files" before giving it a name.)

  4. Go to the folder where you saved the file and open it.

  5. There you have it - A command prompt window that displays the current time in hours, minutes, seconds and centiseconds. (That's right - Centiseconds, not microseconds or milliseconds.)

1 comment:

  1. Want premium version of IDM? Must Try this IDM trial reset software IDM Trial Reset

    ReplyDelete