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

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

高洛峰
Release: 2017-01-16 10:24:53
Original
1799 people have browsed it

Method one:

currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
Copy after login

Method two:

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template