DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Wscript: Get The Location Of Script File

09.22.2009
| 2942 views |
  • submit to reddit
        
Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")
Msgbox fso.GetParentFolderName(wscript.ScriptFullName)