Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Use Word to Search for FilesContent of Use Word to Search for Files.vbsMD5 Hash: A4B37FCCEFBEFEB221B20ED697974625 |
||
' Description: Demonstration script that uses Microsoft Word to locate all the .mp3 files stored on drive C of the local computer.
Set objWord = CreateObject("Word.Application") Set objDoc = objWord.Documents.Add() objWord.FileSearch.FileName = "*.mp3" objWord.FileSearch.LookIn = "C:\" objWord.FileSearch.SearchSubfolders = True objWord.FileSearch.Execute For Each objFile in objWord.FileSearch.FoundFiles Wscript.Echo objFile Next objWord.Quit | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |