Thank u Ganesh i think it was a mistake in the QTP help user guide it self i
didn't saw that and i directly copied the code and executed.

On 11/12/08, Ganesh muralidharan <[EMAIL PROTECTED]> wrote:
>
> Use
>
> set oShell = CreateObject("WScript.Shell")
>
>
> On Wed, Nov 12, 2008 at 12:22 PM, govind sirvi <[EMAIL PROTECTED]>wrote:
>
>> Can anybody tell me what is the problem in below code which executes dos
>> command on execution.
>>
>> Dim oShell
>> Set oShell = WScript.CreateObject ("WSCript.shell")
>> oShell.run "cmd /K CD C:\ & Dir"
>> Set oShell = Nothing
>>
>> when i run this test in QTP 9.2 i am getting error message "Object
>> Required: 'Wscript'
>>
>>
>>
>>
>>
>>
>
>
> --
> Ganesh Muralidharan
> Wipro Technologies
> Mob. : 9341023574
>
> 'God Never Forgets'
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to