标签:
$shell = New-Object -ComObject WScript.Shell $desktop = [System.Environment]::GetFolderPath(‘Desktop‘) $shortcut = $shell.CreateShortcut("$desktop\SmartPanel.lnk") $shortcut.TargetPath = "calc.exe" $shortcut.IconLocation = "shell32.dll,22" $shortcut.Save()
标签:
原文地址:http://www.cnblogs.com/IvanChen/p/4493746.html