Add skyrim to toggle updates
This commit is contained in:
parent
f4079b0ef1
commit
07f3f8981b
16
SteamToggleUpdate/ToggleSkyrimUpdates.ps1
Normal file
16
SteamToggleUpdate/ToggleSkyrimUpdates.ps1
Normal file
@ -0,0 +1,16 @@
|
||||
$appId = 489830
|
||||
$networkLocation = "https://raw.githubusercontent.com/IsaacShoebottom/Scripts/master/SteamToggleUpdate/ToggleUpdates.ps1"
|
||||
|
||||
# Test if ToggleUpdates.ps1 exists and invoke it if it does
|
||||
If (Test-Path -Path ".\ToggleUpdates.ps1" -PathType Leaf) {
|
||||
.\ToggleUpdates.ps1 $appId
|
||||
}
|
||||
Else {
|
||||
# Download the network script
|
||||
$wc = New-Object System.Net.WebClient
|
||||
$wc.DownloadFile($networkLocation, ".\ToggleUpdates.ps1")
|
||||
# Invoke the network script
|
||||
.\ToggleUpdates.ps1 $appId
|
||||
# Delete the network script
|
||||
Remove-Item -Path ".\ToggleUpdates.ps1"
|
||||
}
|
Loading…
Reference in New Issue
Block a user