Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Full path of Script file

Status
Not open for further replies.

greg0303

Technical User
May 5, 2006
94
CA
I want to check that a script is running in particular folder before executing. How do you get the full path of the folder which the vbs file is saved it when the file is executed?
 
[tt]s=wscript.scriptfullpath
wscript.echo s
[/tt]
 
Set WshShell = CreateObject("WScript.Shell")
WScript.Echo WshShell.CurrentDirectory

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top