batch file typeperf

April 9, 2010 at 00:17:49
Specs: Windows XP, 7
Can someone show me how to create a batch file for the following:
typeperf "process(notepad)\% processor time"
I can run this from the cmd prompt and the run dialog box in XP and Win7, but not a batch file.

-Perfect! Thanks so, so much for the answer guys.


See More: batch file typeperf

Report •


#1
April 9, 2010 at 01:43:37
In a batch file the % symbol must be coded twice but when marking an external variable (e.g. %1, %2 and so on).

typeperf "process(notepad)\%% processor time"


Report •

#2
April 9, 2010 at 01:47:38
In batch files, replace % with %%. So:

typeperf "process(notepad)\%% processor time"

Simples! ;-)


Report •

#3
April 9, 2010 at 01:48:16
Ivo you beat me to it! ;-)

Report •

Related Solutions


Ask Question