Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Start perfmon from batch file
Name: metaledge Date: April 25, 2007 at 08:15:38 Pacific OS: Windows 2000 CPU/Ram: Xeon Product: IBM
Comment:
I have a number of permon counters defined as HTML files and would like to know if there is an easy way to simply start these counters from a batch file/command line. I am sure perfmon.exe takes command line parameters but have had no luck with them.
Name: Curt R Date: April 25, 2007 at 13:29:51 Pacific
Reply:
Why not, setup the counters you want, save it onto your desktop (File >> save As) with whatever name you want. Say you wanted an instance that monitors different aspects of your NIC. Create it, save it as something like "Perf_Nick.msc". Then all you have to do is start it and it's up and running with the counters you selected.
If you really need to run it from a batchfile, then create a batchfile that calls the instance of perfmon you created.
0
Response Number 2
Name: metaledge Date: April 25, 2007 at 13:41:09 Pacific
Reply:
Thanks, thats actually what I ended up doing, but the counters won't start until you manually click the 'play' button. I was looking for a completely hands off approach.
0
Response Number 3
Name: Curt R Date: April 26, 2007 at 15:24:42 Pacific
Reply:
Hmmm...I've never tried to automate it like that so I can't say whether or not it can be done. Sorry!
Maybe with a bit of luck someone else who has will see this and respond.
Summary: Hi, I would like to read text file e.g. abc.txt from batch file. There will be only one line in abc.txt file as given below... InstallationPath REG_SZ C:\Program Files\XYZ\My SoftwarePath\ I wo...
Summary: Does anyone know what command to put in a batch file that would delete a specific registry key upon start-up? There's a key that keeps appearing whenever I restart my computer and I'd like to have it ...