title: Why does WQL LIKE operator not work on drive c, but works fine on drive d?
body: <p>I'm learning about File System Monitoring to speed up my 3rd and 4th backups of my mail server. I have a nice VB Script that works flawlessly on drive D, but when I query changes to drive C, nothing is returned if I use a wildcard.</p>
  
  <p>Here are my queries:</p>
  
  <p>This works fine for c:\sc, but does not return subfolder changes:
  <PRE>     Select * From __InstanceOperationEvent Within 10 Where TargetInstance Isa 'CIM_DataFile' And ((TargetInstance.Drive='c:' And TargetInstance.Path = '\\sc\\'))</PRE></p>
  
  <p>This works fine for d:\sc, and does return subfolder changes:
  <PRE>     Select * From __InstanceOperationEvent Within 10 Where TargetInstance Isa 'CIM_DataFile' And ((TargetInstance.Drive='d:' And TargetInstance.Path LIKE '\\sc\\%'))</PRE></p>
  
  <p>This one returns no changes at all. No error messages are returned, and the script continues to run:
  <PRE>     Select * From __InstanceOperationEvent Within 10 Where TargetInstance Isa 'CIM_DataFile' And ((TargetInstance.Drive='c:' And TargetInstance.Path LIKE '\\sc\\%'))</PRE></p>
  
  <p>The double parenthesis are so that I can add similar queries connected with "OR".</p>
  
  <p>My system drive is drive C.<BR>
  Drive D is a removable USB drive.</p>
  
  <p>Have I changed some setting on my system drive that is preventing this from working?<BR> Or perhaps the query is returning too many results?</p>
  
  <p>I have been searching about this for a few hours. Any insight will be greatly appreciated.</p>