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.)
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
- 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).
- Write the following in the new document:
- 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.)
- Go to the folder where you saved the file and open it.
- 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.)
- 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).
- Write the following in the new document:
- 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.)
- Go to the folder where you saved the file and open it.
- 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.)
Want premium version of IDM? Must Try this IDM trial reset software IDM Trial Reset
ReplyDelete