Created
January 24, 2019 15:15
-
-
Save rwb27/95be2ba46e1bd244d695b6afbdcfae94 to your computer and use it in GitHub Desktop.
How to create a shortcut in Windows 10 from PowerShell
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
$ws = New-Object -ComObject WScript.Shell; | |
$s = $ws.CreateShortcut('C:\Users\Public\Desktop\RDWorksV8.lnk'); | |
$s.TargetPath = 'C:\Program Files (x86)\RDWorksV8\RDWorksV8.exe'; | |
$s.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment