Pages

Showing posts with label get current folder. Show all posts
Showing posts with label get current folder. Show all posts

Friday, 15 June 2012

Get current directory - VBScript


on Error Resume Next


Set objWshShell = CreateObject("WScript.Shell")
Set objFileSystem = CreateObject("Scripting.FileSystemObject")

sScriptDir=objFileSystem.GetParentFolderName(WScript.ScriptFullName)


msgbox sscriptdir