Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External File (.vbs)
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

VBS File path. for ex: C:\s.vbs

I don't want configure the s.vbs file in File - Settings - Resources - Associate Functional Libraries. But still i want to use it in test.

Can it possible to write any code/script to get external .vbs file into test withough configuring from File - Settings....?

Can anyone please provide me the code for that?


Thanks
Shrini
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,
Use ExecuteFile(FileName) statement. In this case you don't need to add this file in resources.
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Yup.....its working ok.

Thanks for the help.

Shrini
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  .vbs script error when trying to insert a value in a sapguitable frebuffi 5 6,939 07-18-2013, 03:04 PM
Last Post: Staff
Exclamation How to read the contents of external excel sheet qtplearner88 10 10,951 05-25-2012, 12:00 PM
Last Post: supputuri
  programming to use different external file of environment variables bundfromnj 1 4,018 01-19-2012, 05:32 PM
Last Post: SteveS
  VBS to DLL to QTP ssco77 5 12,363 12-16-2011, 01:21 PM
Last Post: prashants1
Exclamation how to Pass Optional Parameters in VBS? ShrikantBiradar3449 1 8,373 06-13-2011, 03:12 AM
Last Post: Skepsis

Forum Jump:


Users browsing this thread: 2 Guest(s)