问题
Using Windows 7 and Creating a scheduled task based on a trigger. The following line is resulting in "The event log query specified is invalid" [EventData[Data[@Name='Network Client'] and (Data="C:\Program Files (x86)\AT&T Network Client\NetVC.exe")]]
I have uncovered the cause to be the ampersand in the path name "AT&T" If I remove the ampersand then the query is understandable, but of course the path name then becomes invalid. Is there some method where the ampersand special char can used in this situation?
来源:https://stackoverflow.com/questions/38416042/special-character-in-xpath-query