Use Word to Search for Files

时间:2007-06-15    点击:151   
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


一个js实现的所谓的滑动门
JavaScript网页制作特殊效果用随机数
Sample script that deletes a SQL Server database
use jscript Create a SQL Server database
Convert Seconds To Hours
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved