Micro Focus QTP (UFT) Forums
How to call a QC file in VAPI Test - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to call a QC file in VAPI Test (/Thread-How-to-call-a-QC-file-in-VAPI-Test)



How to call a QC file in VAPI Test - rameshrise3 - 03-04-2010

Hi All,
I have created VAPI-XP test and I called a local file and it worked fine.

now I am trying to call a file, which in QC\Resources(ex: batch file), but I am getting error message.

Code:
Code:
Dim shell
set shell=createobject("wscript.shell")
shell.run "C:\Server\backup.bat"
set shell=nothing

this works, but I would like get backup.bat file from QC Resorces
I tried this bute getting error

Code:
Code:
Dim shell
set shell=createobject("wscript.shell")
shell.run "[QualityCenter\Resources] Resources\backup.bat"
set shell=nothing

but it doesn't work.

Please help me.