回复 6# DAIC
差不多像这样:- path = "c:"
-
- Dim fso
- Set fso = WScript.CreateObject("Scripting.Filesystemobject")
-
- path = fso.GetFolder(path).Path
- path = "file:///" & Replace(path,"\","/")
-
- Dim Shell
- Set Shell = WScript.CreateObject("Shell.Application")
-
- For Each W In Shell.Windows
- If w.LocationUrl=path Then W.Quit
- Next
复制代码
|