Last active
October 18, 2016 14:35
-
-
Save amdelamar/0b0b8984c9c0cfdbb6fabca3e3043c69 to your computer and use it in GitHub Desktop.
Creates Shortcuts for Windows users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' This script creates a Desktop Shortcut | |
Option Explicit | |
Dim objShell, objDesktop, objLink | |
Set objShell = CreateObject("WScript.Shell") | |
objDesktop = objShell.SpecialFolders("Desktop") | |
Set myShortcut = objShell.CreateShortcut(objDesktop & "\Your Application.lnk") | |
myShortcut.HotKey = "CTRL+SHIFT+X" | |
myShortcut.TargetPath = """C:\Users\You\YourCompany\YourApplication\app.exe""" | |
myShortcut.IconLocation = "C:\Users\You\YourCompany\YourApplication\app.ico" | |
myShortcut.WorkingDirectory = "C:\Users\You\YourCompany\YourApplication" | |
myShortcut.WindowStyle = 3 | |
myShortcut.Description = "Your Application Description" | |
myShortcut.Save() | |
WScript.Quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment