

测试的时候要保证当前目录下有文件夹才可以,否则输出为空。
Set ws=WScript.CreateObject("wscript.shell")
w=ws.CurrentDirectory
Set fso=WScript.CreateObject("scripting.filesystemobject")
Set fs=fso.GetFolder(w)
Set f=fs.SubFolders
For Each uu In f
t=t & uu.Path & vbcrlf
Next
MsgBox t更多VBS获取当前目录下所有文件夹名字的代码相关文章请关注PHP中文网!
