Change title of Command Prompt for Automation

1 Star2 Stars3 Stars4 Stars5 Stars (3)
Loading ... Loading ...

Executing batch jobs or commands through window command prompt requires recognizing the MSDOS Window. The DOS window can be launched from a QTP script using the below command
SystemUtil.Run “cmd”
This launched a MS-DOS console as shown in the image below

The above window can be recognized using the title of the Window “C:\Windows\System32\cmd.exe”

Window("title:=C:\\Windows\\System32\\cmd\.exe").Activate

or

Set oDosW = Description.Create
oDosW("regexpwndtitle").Value = [...]

Register or Login to read the full article...

Have questions related to this article? Want to request a new article? Use our forums to post your questions


Viewed 1,259 times

Related posts:

  1. Suscribe to Email

    Enter your email address:

    Delivered by FeedBurner