Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While timethis.exe works fine for almost every application, it seems to fail for .bat files:

C:\test>timethis test.bat

TimeThis :  Command Line :  test.bat
TimeThis :    Start Time :  Fri Feb 26 19:46:30 2010

'test.bat' is not recognized as an internal or external command,
operable program or batch file.

TimeThis :  Command Line :  test.bat
TimeThis :    Start Time :  Fri Feb 26 19:46:30 2010
TimeThis :      End Time :  Fri Feb 26 19:46:30 2010
TimeThis :  Elapsed Time :  00:00:00.070

While executing it on a regular command line is fine, timethis.exe fails for it. How do I fix this problem?

share|improve this question

Running a .BAT file works fine for me, but if it doesn't work for you then try this:

    TIMETHIS CMD.EXE /C test.bat

The TIMETHIS tool is available for download from Microsoft.

It seems to work fine on Windows 7 as well.

share|improve this answer

Try using the start command:

timethis "start test.bat"

EDIT: Actually now I'm not sure if this will work. It didn't seem to give any time for my batch file.

After further tests I realized that: timethis test.bat works just fine for me. Maybe you need a different version of timethis or your test.bat file is not in the same directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.