vbs中获取脚本当前路径的2个方法
摘要:方法一:复制代码代码如下:currentpath=createobject("Scripting.FileSystemObject").Ge...
方法一:
复制代码 代码如下:
currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
方法二:
复制代码 代码如下:
currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
【vbs中获取脚本当前路径的2个方法】相关文章:
★ VBS中获取系统本次及上次开关机时间的代码(WinXP/win2003/Win7兼容版)