易网时代-编程资源站
Welcome
首页
/
编程脚本
/
vbs中获取脚本当前路径的2个方法
方法一:
复制代码
代码如下:
currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
方法二:
复制代码
代码如下:
currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
版权所有©石家庄振强科技有限公司2024
冀ICP备08103738号-5
网站地图