Mobile Forces

From LANCommander
Revision as of 01:17, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Rage Software}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|May 31, 2002}} |Genres = {{Game.InfoBox.Genre|Indie}} {{Game.InfoBox.Genre|Shooter}} {{Game.InfoBox.Genre|Strategy}} | PCGamingWiki = Mobile_Forces }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = System/MobileForces.exe|Arguments = |WorkingDirectory = |Primary = True}} }} {{Game.Scripts.Na...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Rage Software
Release Date
Windows: May 31, 2002
Genres
Indie

Shooter Strategy

View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play System/MobileForces.exe True

Name Change Script

$NewName = $args[0]
$InstallDir = $PSScriptRoot

function Write-ReplaceContentInFile([string]$Regex, [string]$Replacement, [string]$FilePath)
{
    $content = (Get-Content $FilePath) -replace $Regex, $Replacement
    [IO.File]::WriteAllLines($FilePath, $content)
}

Write-ReplaceContentInFile -Regex 'Name=(.+)' -Replacement "Name=$NewName" -FilePath "$InstallDir\System\Profile00.ini"