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

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

1845


What is quicktest professional (qtp)?

757


what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1850


What is the descriptive programming?

1733


Explain different recording modes?

776


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

772


Explain how qtp identifies objects?

758


QTP script is not working on other's machine..

1717


What is the difference between the keyword view and expert view?

715


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1621


Can we run multiple QTP scripts one after the other without manual intervention? How?

779


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1558


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

782


I have written a code to fetch values fro access db and place in the fields. Iam using GetROProperty to fetch runtime values. Now i want to add runtime values to the access db in field v3. please help me. Its not writting in the db. Option explicit Dim con,rs,db,c Set con=createobject("adodb.connection") Set rs=createobject("adodb.recordset") con.Open "Driver={Microsoft Access Driver (*.mdb)};dbq=D:\Sales.mdb" rs.open "select * from tax",con Do while not rs.eof Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("incost").Set rs.fields("v1") Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("intax").Set rs.fields("v2") c=Browser("Sales Tax Calculator").Page("Sales Tax Calculator").WebEdit("outtax").GetROProperty("value") rs.MoveNext print c Loop Do while not rs.EOF rs.EditMode rs.Fields("v3").Value="3" rs.Update rs.MoveNext Loop Set rs=nothing Set con=nothing

1702


how to test use the quality control .how to verify the image verification

2791