Solved

Perfmon fails to run any program

Posted on 2009-04-09
2
891 Views
Last Modified: 2013-11-29
I have configured perfmon on a windows xp 64 bit machine to monitor the cpu usage of a running process.

If I tell it to log an entry in the event log this works fine, but if I ask it to launch a batch file, it fails to launch the batch file and logs an entry in the event log stating:

"Unable to execute command '' for the checkbatch alert.   The alert will continue as scheduled. The error code returned is in the data."

i have tried selecting some command arguments, and no command arguments. and it doesnt seem to matter what script of app im trying to launch, i tried notepad.exe and this also fails to pop up when the alert is triggered.

so its log in event viewer, but doesnt run any program. any ideas?
thanks

0
Comment
Question by:paul_at_work
2 Comments
 
LVL 6

Expert Comment

by:Justin_W_Chandler
Comment Utility
have it execute CMD first:

CMD /C YOURBATCH.BAT
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
Comment Utility
Hi, I think for PerfMon, the "Run this program" entry will NOT run unless you click "Command line arguments..." and tick at least one box.  I have just ticked the "Single argument string" box, and it runs the program fine.

See here for how I got a batch file to run with arguments.
http://www.experts-exchange.com/Networking/Protocols/Application_Protocols/Email/SMTP/Q_23662951.html

Regards,

Rob.
0

Featured Post

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now