Use Word to Search for Files
2007-06-15 00:00
411 查看
Demonstration script that uses Microsoft Word to locate all the
.mp3 files stored on drive C of the local computer
.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
相关文章推荐
- Use Word to Search for Files
- ERROR in Cannot use 'in' operator to search for 'providers' in null
- Use Indexing service and IFilter to search PDF Files
- 解决 js报错:Uncaught TypeError- Cannot use 'in' operator to search for 'length' in [{"id":"636","...
- [Linux] Use find to search for filename patterns
- How To Use WordBasic Functions in an MFC Automation Client for Word 97, Word 2000, Word 2002, or Word 2003
- 前台解析有后台传过来的json数据时报错 Cannot use 'in' operator to search for 'length' in......
- how to use sqlserver2008 to search in files
- ...Uncaught TypeError: Cannot use 'in' operator to search for“length”in { json数据 }
- Solution:Unable to install CSD for WebSphere® MQ v5.3. Files in use!
- Java for LeetCode 211 Add and Search Word - Data structure design
- How to Reuse Old PCs for Solr Search Platform?
- Use P/Invoke to Develop a .NET Base Class Library for Serial Device Communications
- How to Use Xmonad, a Tiling Window Manager for Linux
- use isSubstring to check if one word is a rotation of another.
- JBoss EAP6/AS7/WildFly: How to Use Properties Files Outside Your Archive--reference
- Unable to boot : please use a kernel appropriate for your cpu
- To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
- SAP Skill - How to search a field for which table it belongs
- How to use Hibernate annotations @ManyToOne and @OneToMany for associations