Micro Focus QTP (UFT) Forums

Full Version: How to get the path of the batch file under execution
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

How to get the path of the vbs file which is under execution. For eg, if i have triggered execution of C:\abc\def\gh.vbs file, how can i get this path?

Thanks
Sams
try this
folderName = "..\.."

Code:
Set fso = CreateObject("Scripting.FileSystemObject")
File_path = fso.GetAbsolutePathName(folderName)
msgbox File_path

this 'File_path' will give you the path.

Regards,
Harish
Thank you Harish.