Micro Focus QTP (UFT) Forums
execute file - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: execute file (/Thread-execute-file)



execute file - rjkmr.aiht - 05-14-2012

hi all

please any help me for this

instead of using execuefile C:\automation\app specific\lib\salesforcefunction.vbs" imusing the below code please any one can tell me the exact code for this code below


Executefile "\....\salesforcefunction.vbs"


RE: execute file - Ankesh - 05-14-2012

Executefile "\....\salesforcefunction.vbs" is the correct code.

Are you facing any issue with it?

Regards,
Ankesh


RE: execute file - rjkmr.aiht - 05-14-2012

yes!!!!!!!!!!!!!!!!!!!!Tongue

its showing error
shall u please explain this to navigate a folder to folder




RE: execute file - Ankesh - 05-15-2012

please post the error msg/screenshot.


RE: execute file - rjkmr.aiht - 05-16-2012

executefile "\....\salesforcefunction.vbs"

please reply me if u got my Question

my error and folder structures are here in attachement





RE: execute file - Ankesh - 05-16-2012

Hey use the below code..
Code:
ExecuteFile "C:\Automation\lib\AppSpecific\salesforcefunction.vbs"
You need to specify the full file path if you are using ExecuteFile statement.

Regards,
Ankesh


RE: execute file - rjkmr.aiht - 05-16-2012

yes thats what im using but there is way to execute the file using the (\..\) character im in need of that one so if u know please help me for this