command line prompt showing how long last command took?

  • Thread starter Thread starter sillyhat
  • Start date Start date
S

sillyhat

Hello

I sometimes use a prompt like this:

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

which gives me this:

Fri 2006-05-12 16:55:32 [H:\]
I would like to be able to have something like this:

Fri 2006-05-12 16:55:32 (00:00:00.34) [H:\]
where the time in bracket is the time taken to execute the last
command.

There is an option under some unix shells to do this.

Is it possible in XP? I know from isssuing a 'prompt /?' that there is
no direct way of doing it but perhaps there is some undocumented way.

If not, I'll stick to TIMETHIS.EXE

Thanks in advance.

Hal
 
Try the Search for here...
http://www.jsifaq.com/

Also try asking in...
microsoft.public.win2000.cmdprompt.admin

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Hello

I sometimes use a prompt like this:

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

which gives me this:

Fri 2006-05-12 16:55:32 [H:\]
I would like to be able to have something like this:

Fri 2006-05-12 16:55:32 (00:00:00.34) [H:\]
where the time in bracket is the time taken to execute the last
command.

There is an option under some unix shells to do this.

Is it possible in XP? I know from isssuing a 'prompt /?' that there is
no direct way of doing it but perhaps there is some undocumented way.

If not, I'll stick to TIMETHIS.EXE

Thanks in advance.

Hal
 
Back
Top