desktop shortcut
This commit is contained in:
12
client/desktop-shortcut.ps1
Normal file
12
client/desktop-shortcut.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
# 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()
|
||||
Reference in New Issue
Block a user