Windows Shortcut Creator

MakeScut is a 32-bit command-line utility used to dynamically create shortcuts on the Windows 95/98/Me/NT/2000/XP operating system.

Shortcuts can be created in any folder on the client, including the Desktop, Start Menu, Program Menu, IE Quick Launch Bar, etc.

The MakeScut utility is used by ScriptLogic to create the Shortcuts defined on the Shortcuts Tab in the ScriptLogic Manager.

You can also get creative by using the MakeScut utility within ScriptLogic custom scripting.

The following options are available when creating shortcuts using the 32-bit MakeScut command line utility:

/n Name of the shortcut to be created, including the full path.
/t Target application that the shortcut will be used to launch, including full path.
/i Filespec (and optionally an index) of the icon for the shortcut, including full path.
/a Arguments used by the target application.
/s Start in (a.k.a. Working directory), including full path.
/r Run window. Default is a normal window. Options include min or max.
/o Overwrite. If the /o switch is not specified, the default behavior is do not overwrite.
/k shortcut Key used to launch the application.

 Example code that can be used in a custom script (KiXtart):

$ShellDesk=Readvalue('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders','Desktop')
$OSclass='@inwin'
if $OSclass='1' ; NT
  $TargetPath='%windir%\System32'
else ; 9X
  $TargetPath='%windir%'
endif
$TargetFilespec=$TargetPath+'\calc.exe'
$cmdline='$MakeScut /n "$ShellDesk\Calculator" /t "$TargetFilespec" /r min /o /k CTRL+ALT+C'
Shell $cmdline

 

Notes: