Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Search for Folders Using WildcardsContent of Search for Folders Using Wildcards.vbsMD5 Hash: A9BCF4536056B7D07F669DBD61E27F2C |
||
' Description: Returns a list of all the folders whose path begins with C:\S.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colFolders = objWMIService.ExecQuery _ ("Select * from Win32_Directory where Name Like '%c:\\S%'") For Each objFolder in colFolders Wscript.Echo "Name: " & objFolder.Name Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |