Pages

Showing posts with label vbscript current directory. Show all posts
Showing posts with label vbscript current directory. Show all posts

Monday, 29 August 2011

Ger CurrentDirectory using VBScript

on Error Resume Next

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

	sScriptDir=objFileSystem.GetParentFolderName(WScript.ScriptFullName)

msgbox sscriptdir