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

Answers were Sorted based on User's Feedback



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

Answer / johnson

Create one flat file and write script in to that.Save the file to .Vbs extension. Double click on that vbs file. It will execute.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / 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

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

Answer / sangeeta

We can execute it from File-> settings-> Resource Tab. Needs
to map the Vbs file by clicking on the +(plus) icon there.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More QTP Interview Questions

I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)

0 Answers  


Explain object spy in qtp.

0 Answers  


Hi all, On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far.. The script of importance is as follows: Browser("Personalized Start Page").Page("XYZ").Frame ("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location. On the "Record and Run" settings under Qtp,have activated settings for web and windows applications. But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository. Have tried putting the Dialog("0% of dms.php from XYZ- ").Exist property.But the "Exist" property is not recognised by the dialog at all. Any help in this direction is appreciated.. Thanks in advance J

1 Answers   ADP,


what is error and fault in terms of software quality?

0 Answers   TCS,


What type of automation frame work you are using?and why?

2 Answers   Wipro,






Hi PLZ explain User Defined Functions in QTP with eample?

2 Answers   Ordain Solutions,


How to retrieve the data from database?

6 Answers   Wipro,


What issues come up in test automation, and how do you manage them?

0 Answers  


Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly

0 Answers  


How can the functions inside DLL be called from QTP? i mean How can i use those functions(Inside DLL) in QTP

1 Answers  


suppose u hav a dialog or window which contains 10 buttons with same name & value. now how to check each button? i.e. how qtp indetifies these objects separately?

2 Answers  


Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same? ok but why descriptive?(only for w/o application)

2 Answers   IBM,


Categories