set ws = createobject("wscript.shell")
rem 获取当前目录
msgbox(ws.currentdirectory)
rem 设置当前目录
ws.currentdirectory = "d:\"
rem 获取当前目录
msgbox(ws.currentdirectory)
set ws = nothing
vbs教程《当前目录》
最新推荐文章于 2025-11-18 15:49:50 发布
set ws = createobject("wscript.shell")
rem 获取当前目录
msgbox(ws.currentdirectory)
rem 设置当前目录
ws.currentdirectory = "d:\"
rem 获取当前目录
msgbox(ws.currentdirectory)
set ws = nothing
3606
3660

被折叠的 条评论
为什么被折叠?