Skip to content

Instantly share code, notes, and snippets.

@qoli
Last active September 30, 2025 21:14
Show Gist options
  • Save qoli/d59cdf9200d83a4d6c42dd5d8f275689 to your computer and use it in GitHub Desktop.
Save qoli/d59cdf9200d83a4d6c42dd5d8f275689 to your computer and use it in GitHub Desktop.
@echo off
setlocal
REM Define ini file path
set "INI_DIR=%USERPROFILE%\Documents\My Games\Starfield"
set "INI_FILE=%INI_DIR%\StarfieldCustom.ini"
REM Create directory if missing
if not exist "%INI_DIR%" (
mkdir "%INI_DIR%"
)
REM Create file if missing
if not exist "%INI_FILE%" (
type nul > "%INI_FILE%"
)
REM Append language setting
echo.>> "%INI_FILE%"
echo [General]>> "%INI_FILE%"
echo sLanguage=zhhans>> "%INI_FILE%"
echo.
echo Done. Language set to zhhans (Simplified Chinese).
echo File path: %INI_FILE%
echo Please restart the game to apply the language setting.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment