Change title of Command Prompt for Automation
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


(3)

Tags used -