Solved

Perfmon fails to run any program

Posted on 2009-04-09
2
893 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
ID: 24130284
have it execute CMD first:

CMD /C YOURBATCH.BAT
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 24135461
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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

932 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

12 Experts available now in Live!

Get 1:1 Help Now