![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Identify the Last File in a Sequential List of Files
|
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colFileList = objWMIService.ExecQuery _ ("ASSOCIATORS OF {Win32_Directory.Name='C:\PDFs'} Where " _ & "ResultClass = CIM_DataFile") For Each objFile In colFileList strFile = objFile.FileName Next Wscript.Echo strFile | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |