View previous topic :: View next topic |
Author |
Message |
rollohmasker
Joined: 08 Jan 2007 Posts: 16
|
Posted: Wed May 19, 2010 7:06 am Post subject: WMI Explorer Problem with Spaces |
|
|
Hello,
i have a question about the wmiexplorer.
I have 10 processes named Service.exe, and the only difference i can find is the Property CommandLine with the Value "C:\Program Files\TXN Systems\Txn\Service.exe" -id 39
In the wmiexplorer i created the following query.
But it doesn`t work. I think it is a problem with the spaces in the CommandLine String.
select VirtualSize from Win32_Process where name='Service.exe' AND CommandLine=' "C:\Program Files\TXN Systems\Txn\Service.exe" -id 39'
Do you see what I did wrong in this case?
Best regards |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Wed May 19, 2010 11:15 am Post subject: |
|
|
You are using single and double quotation marks for 1 variable. In such case you should use backslash (\) to quote special symbols like \ or ".
For example your query should look like
select VirtualSize from Win32_Process where name="Service.exe" AND CommandLine="\"C:\\Program Files\\TXN Systems\\Txn\\Service.exe\" -id 39"
Regards
Alex |
|
Back to top |
|
|
|