Dune 2000

From LANCommander
Revision as of 00:29, 1 August 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Games {{Game.InfoBox |Cover = cover.jpg |Developers = {{Game.InfoBox.Developer|Westwood Studios}} |Publishers = {{Game.InfoBox.Publisher|Westwood Studios}} {{Game.InfoBox.Publisher|Electronic Arts}} |Release Date = {{Game.InfoBox.ReleaseDate|Windows|September 1, 1998}} |Genres = {{Game.InfoBox.Genre|Real Time Strategy (RTS)}} {{Game.InfoBox.Genre|Strategy}} | PCGamingWiki = Dune_2000 }} {{Game.ActionBox |Actions = {{Game.ActionBox.Row|Name = Play|Path = cn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Westwood Studios
Publishers
Westwood Studios Electronic Arts
Release Date
Windows: September 1, 1998
Genres
Real Time Strategy (RTS)

Strategy

View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play cncnet5.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 'Nickname=(.+)' -Replacement "Nickname=$NewName" -FilePath "$InstallDir\cncnet5.ini"