Getting started - Shell Execute

Shell Execute

The Windows Run or Run box is a feature first introduced in Microsoft Windows 95 and included in all later versions of Windows. It allows the user to open a program by name if found in the Windows directory or start any file by typing in the full path. The picture below shows an example of what the Run box looks like in Microsoft Windows XP.

Tip: Press the Windows Key+ R at any time to open the Run

The Windows key + R should bring up the windows Run Window
image

How to use the Run Box

Any executable file that is located in the C:\Windows directory can be run by name. For example, the executable for Microsoft Calculator is calc.exe. If you wanted to open the calculator from the Run box, type calc and press Enter.

How to run a file using the full file path

Any executable can also be run by typing the full file executable path. For example, we could also run the Microsoft Calculator by typing in the full path to the executable. For example, typing c:\windows\calc.exe and pressing Enter would also open the Calculator. Windows also looks at the Windows directory by default, so typing in calc.exe would open the Calculator since its in the Windows directory.

image
Double Click the Execute Program to add a Execute program Step to Yarado.

image
The Following Default Options Are available :
• New Windows Explorer Blanc
• New Windows Explorer + path
• New Internet Explorer Blanc
• New Internet Explorer + URL
• Open My Network Places
• Open My Documents
• Open Network Locations
• Open Printers and Faxes

Exercise 1: open Notepad

image
Double Click Execute Program to add Execute program Step

image
Click in the Enter Program Textbox and Type Notepad.exe

image
Click Test and validate if a new notepad instance gets started.

Click Save to add this step to the process visualizer.

Exercise 2: Launch IE+URl

Click File --> new
image
Double Click Execute Program to add Execute program Step


Select Internet Explorer + URL

image
Enter url : www.amazon.com

Click Test and validate of a new Internet Explorer Instance is opened with Amazon.com

Exercise 3: Launch Edge + Webpage

Click File --> New

image
Double Click Execute Program to add Execute program Step

image
Enter as program: CMD

As optional Parameters: /c start microsoft-edge:http://www.amazon.com

Click Test to validate that te result is a new opened Tab in Edge with www.amazon.com in the URL

Breakdown

Edge is a special case: it is not located in the Search paths of the Operating system; It also does not have a .exe file with path located.

We start a new Windows Command {CMD}

We add a {/C} parameter : /C Carries out the command specified by string and then terminates

Meaning string to execute is { start microsoft-edge:http://www.amazon.com } and command box is terminated

In the new command box : start microsoft-edge:http://www.amazon.com is executed in the command box

{start microsoft-edge: }

with “:” start Microsoft Edge Browser

{start microsoft-edge:http://}

start Microsoft Edge Browser with new tab

{start microsoft-edge:http://www.amazon.com }

start Microsoft Edge Browser and open URL in new Tab

References