Sunday 18 August 2013

How to Use Dos Commands from QuickTest Script

QuickTest does this by using standard VBScript you can simply use the Windows Scripting
Host Shell object.
‘For Example:
Dim oShell
Set oShell = CreateObject (”WSCript.shell”)
‘The following VBScript code opens a command window, changes to the path to C:\ , and executes the DIR command.
oShell.run “cmd /K CD C:\ & Dir”
Set oShell = Nothing

No comments:

Post a Comment