Include timestamp in the command prompt

I find myself working from the command prompt quite often, and I always have the need to capture the screen shots for demonstration or auditing purposes, so it is vital to incorporate the timestamp in the command prompt.

Let me show you how it is done. Open up a command window and type:

PROMPT=$D$S$T$H$H$H$_$P$G

Depending on your locale and system settings, you’ll see something like the following:

16/10/2009 Fri 22:05:59
C:\Windows\System32>

To make the timestamp a permanent feature, simply add it to the environment variables.