Skip to content

Instantly share code, notes, and snippets.

@xPaw
Last active May 27, 2019 20:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xPaw/ccb0ecfa0ea0b9cca2ca4badf2452053 to your computer and use it in GitHub Desktop.
Save xPaw/ccb0ecfa0ea0b9cca2ca4badf2452053 to your computer and use it in GitHub Desktop.
if( $args.Length -lt 1 )
{
"Pass in appids as arguments: 440 570 730"
Exit 1
}
foreach( $AppID in $args )
{
# Parse appids from links
$AppID = $AppID -creplace '.*?/([0-9]+).*', '$1'
"App $AppID"
$env:SteamAppId = $AppID
Start-Process Rundll32 steam_api.dll,SteamAPI_Init -Wait
}
"Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment