2/09/2011

Launching a program, document, URL, or shortcut

The Run command is used to launch a program, document, url ot shortcut. Now i'll show you some common examples:


Run Skype
Run C:\My Documents\review4.doc
Run C:\My Documents\My Shortcut.lnk
Run www.google.bg
Run mailto:example@exampledomain.com
 
A hotkey can be assigned to any of the above examples by including a hotkey label (I'll make a special post about hotkey label). In the first example below, the assigned hotkey is Win+N, while in the second it is Control+Alt+C:

#n::Run Notepad
^!c::Run calc.exe
 
If the program/document/url or shortcut is not integrated
with the system,
specify its full path to get it to launch:
 
 Run %A_ProgramFiles%\Skype\Skype.exe

No comments:

Post a Comment