Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List All the Files on a ComputerContent of List All the Files on a Computer.vbsMD5 Hash: 992575A20684BE300D199222C279C735 |
||
' Description: Enumerates all the files on a computer. This is a demonstration script; if actually run, it could take an hour or more to complete, depending on the number of files on the computer. Depending on the number of files and on available memory, this script could also fail before finishing.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colFiles = objWMIService.ExecQuery("Select * from CIM_Datafile") 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 :: |