"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

DOS and Batch Files

Place Date and Time in the Prompt

SUMMARY: When working long nights debugging batch files, have the time and date displayed in a place easy to find - the command prompt.


 

Always looking around for the current date and time? Why not place it in a useful place, say, the command prompt?

Add this line to AUTOEXEC.BAT:

prompt Time: $t$_Date: $d$_$p$g



Print This Tip

Get E-Mail When New Tips are Online

Return to the DOS and Batch Files page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )