$shell = New-Object -ComObject WScript.Shell
$desktop =[System.Environment]::GetFolderPath('Desktop')
$shortcut = $shell.CreateShortcut("$desktop\test.lnk")
$shortcut.TargetPath = "C:\Program Files\Everything\Everything.exe"
$shortcut.IconLocation = "C:\Program Files\Everything\Everything.exe"
$shortcut.Save()
Powershell-创建当前用户桌面快捷方式
最新推荐文章于 2024-05-09 18:48:17 发布