REFERENCE LaunchAndRename

 This command is new in build 124

 Starts a program and renames its top-level window.

 Syntax



 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:



 The following example starts Notepad on a remote PC:



 Related topics