Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to use Vista's process list utility to find a PID. You should be able to do this:

query process program.exe

What I'm finding is that if the program name is short (like above), it will find it. But if it's long, like the following:

query process notificationmanager.exe

it won't find it. The length in question seems to be the display length of the query process command itself, which is 12 characters.

Is there a special syntax for specifying long program names?

share|improve this question

3 Answers 3

up vote 0 down vote accepted

query process notificationmanager

Note, it isn't a matter of dropping the .exe, but rather just take the first 19 characters.

A consequence of this, is that it will return all processes whose name starts with notificationmanager.

share|improve this answer
    
Thank you, this is the most direct solution –  jjkparker Jul 28 '10 at 13:00

Does it work if you put the program name in double quotes, e.g.:

query process "notificationmanager.exe"
share|improve this answer
    
No, it doesn't. –  jjkparker Jul 26 '10 at 18:04

if you can use wmic then

wmic process where "name = 'notificationmanager.exe' list brief

share|improve this answer
    
Great answer, thanks for this –  jjkparker Jul 28 '10 at 13:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.