Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: WMI WQL Query Backslash Paths
colFiles = objWMIService.ExecQuery ("SELECT * FROM Win32_PageFileUsage WHERE Name = 'C:\pagefile.sys'")Any Ideas?
colFiles = objWMIService.ExecQuery ("SELECT * FROM Win32_PageFileUsage WHERE Name = 'C:\\pagefile.sys'")Note the use of single quotes to specify strings and double backslashes in place of each backslash. These are required conventions of WMI.
Article ID: W17502
File Created: 2008:04:10:15:11:40
Last Updated: 2008:04:10:15:11:40