WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Shortcut Information

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Make a quick launch shortcut

This shows how to make a standard shortcut on the "Quick Launch" section of the START menu bar.
;Get user application data directory
appdatadir=ShortCutDir("AppData",0,1)

;add path to quick launch directory
quicklaunchdir=StrCat(appdatadir,"Microsoft\Internet Explorer\Quick Launch\")

;Define shortcut name
linkfile="Run Notepad.lnk"

;Define application to run
appexe="notepad.exe"

;build full lnk file name
fulllnkfile=StrCat(quicklaunchdir,linkfile)

;does shortcut of sname name exist?
; FileExist does not work as expected for shortcuts
test=FileItemize(fulllnkfile)
;If shortcut exists, delete it
If test != "" Then FileDelete(fulllnkfile)

;Make new quick launch shortcut
ShortCutMake(fulllnkfile,appexe,"","",@NORMAL)

;Done



Article ID:   W16217
File Created: 2004:03:30:15:43:20
Last Updated: 2004:03:30:15:43:20