How to execute a VBS file without using Execute File
statement?

Answer Posted / kishan

We can run a .vbs file using SystemUtil.Run.

Syntax:
SystemUtil.Run "<Path of your .vbs file>"

eg:

SystemUtil.Run "C:\myfile.vbs"

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

557


What are the technics follow in writing VB script?

1532


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1455


What is the difference between Keyword Driven test and Data Driven test?

1771


Explain the difference between call to action and copy action?

523






which type of testing process are you following in ur company? how to recognize a qtp page?

1403


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

544


hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me

1758


Diff b/w Health care domain and Banking Domain?

4217


What are the different attributes used with regular expression?

553


Can I change properties of a test object?

628


I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

2422


What is the use of running the scripts in Hidden-mode in UFT?

684


What is quick test pro?

590


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1647