All my responses are posted to the forum. I do not do email except under special circumstances. This is not one of them.
![Shocked :o](https://www.computerhope.com/forum/Smileys/classic/shocked.gif)
Normally this is done when you design the form. By including an icon in the form, all the makings of the shortcut are complete. If you package your project for installation, the shortcut is created automatically during the install.
You can create a shortcut manually by right clicking the desktop, choose new-->shortcut and fill in the screen. Also manually, you can find the program in Windows Explorer, drag it to the desktop and when the screen pops up choose
create shortcutThis script will create a
desktop shortcut via the command line.
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Shortcut Script.lnk")
oShellLink.TargetPath = WScript.ScriptFullName
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = "notepad.exe, 0"
oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
Change the parameters accordingly, save script with an extension of
vbs and run from the command line:
cscript scriptname.vbsGood luck.
![Cool 8)](https://www.computerhope.com/forum/Smileys/classic/cool.gif)