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 |
what r the main attributes of test automation?
What are the types of data tables in qtp?
In qtp, how you can exit for loop?
how interviews will be on QTP?
What is time parameter?
diff between dim & redim ? in detailed? pls any one explain me?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
Where we can use the synchronization?
What type of automation frame work you are using?and why?
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.
Count the number of radio buttons and randomly select one.
1)what is the quality process in QTP? 2)how to add the .tsr file in qtp through scripting?