Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get the path of the batch file under execution
#1
Solved: 10 Years, 9 Months, 1 Week ago
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
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
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
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
Thank you Harish.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,782 11-30-2017, 02:21 AM
Last Post: supputuri
  Path of Flight reservation Window is not recorded in HP UFT 12.52 version mailtokopalverma@gmail.com 1 2,401 04-01-2016, 05:34 PM
Last Post: vinod123
  X path Identification vasavi.vasavi 1 2,700 07-29-2015, 10:44 AM
Last Post: kbhargava505
  environment variable path for qc automation2012 0 2,638 01-18-2015, 08:18 AM
Last Post: automation2012
  Change Object Repository File Path for ExternalActions MasterChief 1 4,436 11-13-2014, 06:05 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)