| || |
how input values in dos window
I have an automation script opening a dos window and prompting for input values. How do i enter values using QTP Expertview?
I really appreciate your help
Re: how input values in dos window
Set oShell = CreateObject ("WSCript.shell")
oShell.run "cmd /K CD C:\ & Dir"
Set oShell = Nothing
You need to use Wscript object
That was from the QTP help file ... as you can see the above line executes two commands: 'CD\' and 'Dir'