Skip to content

Instantly share code, notes, and snippets.

@robie2011
Created April 30, 2014 13:48
Show Gist options
  • Save robie2011/a68549980dfbe0ed4d5f to your computer and use it in GitHub Desktop.
Save robie2011/a68549980dfbe0ed4d5f to your computer and use it in GitHub Desktop.
DOS Snippets
set file="%temp%\locale_de-CH.xml"
echo ^<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend"^> ^<!--User List--^> ^<gs:UserList^> ^<gs:User UserID="Current"/^> ^</gs:UserList^> ^<!--User Locale--^> ^<gs:UserLocale^> ^<gs:Locale Name="de-CH" SetAsCurrent="true"/^> ^</gs:UserLocale^>^</gs:GlobalizationServices^>>%file%
control intl.cpl,, /f:%file%
del %file%
set file="%temp%\locale_de-DE.xml"
echo ^<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend"^> ^<!--User List--^> ^<gs:UserList^> ^<gs:User UserID="Current"/^> ^</gs:UserList^> ^<!--User Locale--^> ^<gs:UserLocale^> ^<gs:Locale Name="de-DE" SetAsCurrent="true"/^> ^</gs:UserLocale^>^</gs:GlobalizationServices^>>%file%
control intl.cpl,, /f:%file%
del %file%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment