How to pass a variable in Dos Command using QTP?
Eg:
Dim path1, path2
path1 = "C:\Test\sample1.doc"
path2 = "C:\Test\sample2.doc"
How can we pass these path1 and path2 inside the "copy" dos
command?
I tried like this. this is not working.
oShell.run "cmd /K copy" &path1 &path2
Answer / raghuram
Dim oShell
Set oShell = CreateObject ("WSCript.shell")
oShell.run "cmd /K CD C: & Dir"
Set oShell = Nothing
I was able to do in this way....you can try and let me know
| Is This Answer Correct ? | 3 Yes | 6 No |
How do you check ticket cost and ticket number in flight application?
How to check feasibility of the appliction?in automation testing?
I used Child objects to get the count of the no of weblist present in the page.now i need to select the item in the weblist..Please send me full code
when we apply the daily build each and every day,the property may change in the application.so that the created script is not reusable in winrunner and qtp.for ex for date field it is taken dtpicker.at another time it is taken some other name.how can i solve it.
How to break the object spy ?
Are Shared ORs read-only?
Mention what are the different types of recording modes in qtp? Which will be used when?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
Hi,All How to change background color of a cell in excel using qtp and that too with out using Excel Object.(I am importing the excel sheet by using ImportSheet method)
What is meant by Pseudo Code?
what testing activities u may want to automate in a project?
what is the difference between development and testing