$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-创建当前用户桌面快捷方式
最新推荐文章于 2022-12-28 11:00:39 发布