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 = [...]


(3)
Tags used -

































