REFERENCE
LaunchAndRename

This command is new in build 124

Starts a program and renames its top-level window.

Syntax

<launch pathname newname [arguments]>

Parameters

Pathname is the path and name of the executable file.

Newname is the new name for the window.

Arguments are command line arguments. If there is more than one argument, put them all together in double quotation marks.


Remarks

The pathname is the complete path and name of the file starting from the drive letter. Microsoft calls this a "fully qualified pathname." Here are some examples:


"c:\Program files\windows\system32\notepad.exe"

"c:\Program files\windows\World of Warcraft\Wow.exe"

"c:\Documents and Settings\Owner\Desktop\HotkeyNet.exe"


Those examples are inside quotation marks because they have spaces in them.

The third parameter is optional. If there is more than one symbol or argument in this parameter, enclose it in quotation marks.

This command calls the operating system function CreateProcess.


Examples

The following example starts World of Warcraft and renames it on the local PC:

<Hotkey F1>
<SendPC local>
<LaunchAndRename c:\Program Files\World of Warcraft\WoW.exe" WoW1>


The following example starts Notepad on a remote PC:

<Hotkey F1>
<SendPC 192.168.1.105>
<LaunchAndRename c:\Program Files\World of Warcraft\WoW.exe" WoW1>


Related topics

CloseWin
Launch
RenameWin
RenameFromPath
Run


This page was last revised on September 9, 2008
INSTRUCTIONS


REFERENCE


OTHER STUFF


WORLD OF WARCRAFT