Last active
March 1, 2017 20:30
-
-
Save ayan4m1/33a2c4300226d054c028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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