Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Search for Files Using a Wildcard QueryContent of Search for Files Using a Wildcard Query.vbsMD5 Hash: E4F4C32901358906EB8037F9E174BF4A |
||
' 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 :: |