Solved

Perfmon fails to run any program

Posted on 2009-04-09
2
895 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
How to record audio from input sources to your PC ā€“ connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 ā€“ both 32 bit & 64.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial sā€¦
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 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