Home  >  Article  >  Web Front-end  >  2 ways to get the current path of the script in vbs

2 ways to get the current path of the script in vbs

高洛峰
高洛峰Original
2017-01-16 10:24:531778browse

Method one:

currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path

Method two:

currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path

For more related articles on the two methods of obtaining the current path of the script in vbs, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn