How to launch Application from Command Prompt in UFT?

Scenario:- How we can launch our application to be automated from ‘Command Prompt‘ in UFT/QTP?

Solution:- Today we faced the situation, where we were not able to launch application 
from ‘SystemUtil.Run’.Problem was that our application was not directly in the form of .exe, 
but rather it was expecting parameters based on the Region for which we want this to be launched.

To overcome this problem and coming with  reusable function, we adopted an alternate approach of launching our region specific applications from ‘Command Prompt’. 

We hope following code will definitely help our automation lovers, in solving there problem 
of launching. Here we have taken “Notepad” application for launching example.
Created “Shell Script” code for sending keyboard commands.

Please feel free to share your comments and experiences on this.



Command Prompt in UFT