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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top