:: File to create shortcuts in a user's automation Point Folder. :: Requires the shortcut.exe program from the WindowsNT resource kit. :: To run this for a particular user (not the current user), pass the :: user name as an argument; e.g. to add icons for administrator, run :: APICONS Administrator SETLOCAL IF NOT %1.==. SET USER=%1 %2 IF %1.==. SET USER=%USERNAME% echo %user% :: If you have moved or renamed the Automation Point folder, you will :: need to update the following variable accordingly. set lnk=-n "%SYSTEMROOT%\Profiles\%USER%\Start Menu\Programs\CA-Automation Point\ :: Add shortcut for Edit AP Parms (customize to match YOUR parm filename) shortcut.exe -f %LNK%Edit AP Parms.LNK" -t %windir%\system32\notepad.exe -d %AXC_PATH% -a u#parm.prm :: Add shortcut for Edit AP Rules (customize to match YOUR rules filename) shortcut.exe -f %LNK%Edit AP Rules.LNK" -t %windir%\system32\notepad.exe -d %AXC_PATH% -a u#rules.rul :: Add shortcut for Command Prompt shortcut.exe -f %LNK%Command Prompt.LNK" -t %SystemRoot%\system32\cmd.exe -d %AXC_PATH% :: Add shortcut for Reload AP Rules shortcut.exe -f %LNK%Reload AP Rules.LNK" -t asorexx.exe -d %AXC_PATH% -a "loadrule pause" :: Add shortcut for Edit old host log (customize to match YOUR host log filename) shortcut.exe -f %LNK%Edit Old Host Log.LNK" -t %windir%\system32\notepad.exe -d %AXC_PATH% -a host_01.log :: Add shortcut for Edit old AP log (customize to match YOUR AutoPnt log filename) shortcut.exe -f %LNK%Edit Old AP Log.LNK" -t %windir%\system32\notepad.exe -d %AXC_PATH% -a xcmsg_01.log goto :END :END :: Dump data for an existing shortcut... :: shortcut.exe -u all -n "%SYSTEMROOT%\Profiles\administrator\Start Menu\Programs\Accessories\WORDPAD.LNK :: ======================================================================== :: shortcut: [-? -h -f -c -r -s] [[-t] target [[-n] name]] :: [-d working directory] :: [-a Arguments] [-i Iconfile] [-x Icon index] [-u {all|[natdix]}] :: [-l logfile] :: :: -? -h This help :: -f Force overwrite of an existing short cut :: -c Change existing shortcut :: -s Make shortcut non tracking (Stupid) :: -r Resolve broken shortcut :: -t target Specifies the target of the shortcut :: -n name Specifies the file name of the shortcut file :: -d directory Specifies the directory name to start the application in :: -a arguments Specifies the arguments passed when the shortcut is used :: -i iconfile Specifiles the file the icon is in :: -x index Specifies the index into the icon file :: -u [spec] Dumps the contents of a shortcut. 'all' is the same as :: 'natdix' but the letters of 'natdix' can be specified to :: display specific fields in the shortcut (repeats allowed, :: and order followed) :: -l logfile record error messages in specified file