set sh=CreateObject("Wscript.Shell")
set FSO=CreateObject("Scripting.FileSystemObject")
For each i in Wscript.Arguments
Set FO=FSO.GetFolder( i ) '获取目录对象(这步老出错,找不到路径 )
Sh.Run "Explorer " & FO.ShortPath '用目录短路径方式打开
Next
[ Last edited by wewebb on 2010-12-28 at 21:19 ]作者: slore 时间: 2010-12-29 09:54 直接这样不行么?
Sh.Run "Explorer " & i & "." '用目录短路径方式打开