2 lines
No EOL
249 B
PowerShell
2 lines
No EOL
249 B
PowerShell
# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
|
|
Write-ReplaceContentInFile -Pattern '^game.setPlayerName "(.+)"' -Substitution "game.setPlayerName ""$NewPlayerAlias""" -FilePath "$InstallDirectory\<File Path>" |