Skip to content

Instantly share code, notes, and snippets.

@ayan4m1
Last active March 1, 2017 20:30
Show Gist options
  • Save ayan4m1/33a2c4300226d054c028 to your computer and use it in GitHub Desktop.
Save ayan4m1/33a2c4300226d054c028 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
my $steamPath = "C:\\Steam\\steamcmd";
my $loginCmd = "+login anonymous";
my $quitCmd = "+quit";
my $games = {
'DirectoryUnderRoot' => SteamAppId
};
foreach my $installDir (keys %$games) {
print "Updating $installDir\n";
my $dirCmd = "+force_install_dir \"C:\\$installDir\"";
my $updateCmd = "+app_update $games->{$installDir}";
system("$steamPath $loginCmd $dirCmd $updateCmd $quitCmd");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment