Created
December 18, 2024 11:16
-
-
Save CN-CODEGOD/8cf66aaae1b3e33cbf96782a310fe699 to your computer and use it in GitHub Desktop.
powershell 创建快捷键方式
This file contains hidden or 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
| $Destination = "$home\links\$title.lnk" | |
| $sourcepath =$url | |
| $WshShell = New-Object -comObject WScript.Shell | |
| $Shortcut = $WshShell.CreateShortcut("$Destination") | |
| $Shortcut.TargetPath = $sourcepath | |
| $Shortcut.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment