12 lines
455 B
PowerShell
12 lines
455 B
PowerShell
# creates a desktop shortcut to run client.ps1 in powershell
|
|
|
|
$ClientFile = "$PSScriptRoot\client.ps1"
|
|
$ShortcutPath = "$Home\Desktop\FishPog Pixelmon.lnk"
|
|
$IconPath = "$PSScriptRoot\icon.ico"
|
|
|
|
$WshShell = New-Object -comObject WScript.Shell
|
|
$Shortcut = $WshShell.CreateShortcut($ShortcutPath)
|
|
$Shortcut.TargetPath = "powershell.exe"
|
|
$Shortcut.Arguments = "-ExecutionPolicy Bypass -File `"$ClientFile`""
|
|
$Shortcut.IconLocation = $IconPath
|
|
$Shortcut.Save() |