I'm trying to use the current path of the script using the following snippet:
Set oShell = CreateObject("WScript.Shell")
Set oFileSystemObj = CreateObject("Scripting.FileSystemObject")
PathName = oFileSystemObj.GetParentFolderName(Wscript.ScriptFullName)
But, it keeps throwing up the error saying
'Wscript' Object Required.
wscript.exeorcscript.exe? Or are you using some other engine (HTA, QTP, ...)? Not all VBScript engines have a builtinWScriptobject. - Ansgar Wiechers