QTP Forums

Full Version: How to call a QC file in VAPI Test
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
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:
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.
Reference URL's