Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
External File (.vbs)
#1
Solved: 10 Years, 8 Months, 4 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: 10 Years, 8 Months, 4 Weeks ago
Hi,
Use ExecuteFile(FileName) statement. In this case you don't need to add this file in resources.
Reply
#3
Solved: 10 Years, 8 Months, 4 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,466 07-18-2013, 03:04 PM
Last Post: Staff
Exclamation How to read the contents of external excel sheet qtplearner88 10 10,210 05-25-2012, 12:00 PM
Last Post: supputuri
  programming to use different external file of environment variables bundfromnj 1 3,696 01-19-2012, 05:32 PM
Last Post: SteveS
  VBS to DLL to QTP ssco77 5 11,849 12-16-2011, 01:21 PM
Last Post: prashants1
Exclamation how to Pass Optional Parameters in VBS? ShrikantBiradar3449 1 7,913 06-13-2011, 03:12 AM
Last Post: Skepsis

Forum Jump:


Users browsing this thread: 1 Guest(s)