![]() Loading |
| VBScript |
| JavaScript |
| Powershell |
Search Options: Search for Files Using a Wildcard Query
|
||
|
' Description: Uses the Like keyword to search for all files on a computer that begin with the tilde (~).
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}\\" & strComputer & "\root\cimv2") Set colFiles = objWMIService.ExecQuery _ ("Select * from CIM_DataFile where FileName Like '%~%'") For Each objFile in colFiles Wscript.Echo objFile.Name Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: | ||