Change regional and language options in BATCH












3















How can I change the regional and language options in Windows XP and 7 using batch code?



I want to change the "Standards and formats" to Mexican Spanish with a .bat file.










share|improve this question

























  • full ImportFile.reg source code sample?

    – Kiquenet
    Dec 21 '15 at 13:51











  • Have a look at DISM commands too:DISM Languages and International Servicing Command-Line Options technet.microsoft.com/en-us/library/hh825081.aspx

    – David d C e Freitas
    Sep 19 '17 at 21:21
















3















How can I change the regional and language options in Windows XP and 7 using batch code?



I want to change the "Standards and formats" to Mexican Spanish with a .bat file.










share|improve this question

























  • full ImportFile.reg source code sample?

    – Kiquenet
    Dec 21 '15 at 13:51











  • Have a look at DISM commands too:DISM Languages and International Servicing Command-Line Options technet.microsoft.com/en-us/library/hh825081.aspx

    – David d C e Freitas
    Sep 19 '17 at 21:21














3












3








3


2






How can I change the regional and language options in Windows XP and 7 using batch code?



I want to change the "Standards and formats" to Mexican Spanish with a .bat file.










share|improve this question
















How can I change the regional and language options in Windows XP and 7 using batch code?



I want to change the "Standards and formats" to Mexican Spanish with a .bat file.







windows batch-file settings options regional






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 21 '15 at 13:51









Kiquenet

7,00227110192




7,00227110192










asked Feb 10 '14 at 23:11









user3108594user3108594

1002312




1002312













  • full ImportFile.reg source code sample?

    – Kiquenet
    Dec 21 '15 at 13:51











  • Have a look at DISM commands too:DISM Languages and International Servicing Command-Line Options technet.microsoft.com/en-us/library/hh825081.aspx

    – David d C e Freitas
    Sep 19 '17 at 21:21



















  • full ImportFile.reg source code sample?

    – Kiquenet
    Dec 21 '15 at 13:51











  • Have a look at DISM commands too:DISM Languages and International Servicing Command-Line Options technet.microsoft.com/en-us/library/hh825081.aspx

    – David d C e Freitas
    Sep 19 '17 at 21:21

















full ImportFile.reg source code sample?

– Kiquenet
Dec 21 '15 at 13:51





full ImportFile.reg source code sample?

– Kiquenet
Dec 21 '15 at 13:51













Have a look at DISM commands too:DISM Languages and International Servicing Command-Line Options technet.microsoft.com/en-us/library/hh825081.aspx

– David d C e Freitas
Sep 19 '17 at 21:21





Have a look at DISM commands too:DISM Languages and International Servicing Command-Line Options technet.microsoft.com/en-us/library/hh825081.aspx

– David d C e Freitas
Sep 19 '17 at 21:21












1 Answer
1






active

oldest

votes


















5














Those settings are in the registry under HKCUControl PanelInternational



You can use reg.exe to make the changes manually. The easiest way to do that is to manually change your region and language to spanish (mexico) open a cmd window and type reg query "HKCUControl PanelInternational" which will show you the values as you want them. Then to modify them, use REG ADD "HKCUControl PanelInternational" /t REG_SZ /v LocaleName /d es-Mx /f for each value replacing what is after /v with the appropriate name and what is after /d with the appropriate value.



The other option is to just export the HKCUControl PanelInternational hive to a .reg file and just import it into the registry using regedit /s ImportFile.reg



You may need to refresh the registry after the import to see the changes. This usually involves a reboot but try adding the following as the last line in your batch file instead. RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True






share|improve this answer
























  • And for Windows Server 2008 R2 ?

    – Kiquenet
    Dec 21 '15 at 13:53











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f21689831%2fchange-regional-and-language-options-in-batch%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














Those settings are in the registry under HKCUControl PanelInternational



You can use reg.exe to make the changes manually. The easiest way to do that is to manually change your region and language to spanish (mexico) open a cmd window and type reg query "HKCUControl PanelInternational" which will show you the values as you want them. Then to modify them, use REG ADD "HKCUControl PanelInternational" /t REG_SZ /v LocaleName /d es-Mx /f for each value replacing what is after /v with the appropriate name and what is after /d with the appropriate value.



The other option is to just export the HKCUControl PanelInternational hive to a .reg file and just import it into the registry using regedit /s ImportFile.reg



You may need to refresh the registry after the import to see the changes. This usually involves a reboot but try adding the following as the last line in your batch file instead. RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True






share|improve this answer
























  • And for Windows Server 2008 R2 ?

    – Kiquenet
    Dec 21 '15 at 13:53
















5














Those settings are in the registry under HKCUControl PanelInternational



You can use reg.exe to make the changes manually. The easiest way to do that is to manually change your region and language to spanish (mexico) open a cmd window and type reg query "HKCUControl PanelInternational" which will show you the values as you want them. Then to modify them, use REG ADD "HKCUControl PanelInternational" /t REG_SZ /v LocaleName /d es-Mx /f for each value replacing what is after /v with the appropriate name and what is after /d with the appropriate value.



The other option is to just export the HKCUControl PanelInternational hive to a .reg file and just import it into the registry using regedit /s ImportFile.reg



You may need to refresh the registry after the import to see the changes. This usually involves a reboot but try adding the following as the last line in your batch file instead. RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True






share|improve this answer
























  • And for Windows Server 2008 R2 ?

    – Kiquenet
    Dec 21 '15 at 13:53














5












5








5







Those settings are in the registry under HKCUControl PanelInternational



You can use reg.exe to make the changes manually. The easiest way to do that is to manually change your region and language to spanish (mexico) open a cmd window and type reg query "HKCUControl PanelInternational" which will show you the values as you want them. Then to modify them, use REG ADD "HKCUControl PanelInternational" /t REG_SZ /v LocaleName /d es-Mx /f for each value replacing what is after /v with the appropriate name and what is after /d with the appropriate value.



The other option is to just export the HKCUControl PanelInternational hive to a .reg file and just import it into the registry using regedit /s ImportFile.reg



You may need to refresh the registry after the import to see the changes. This usually involves a reboot but try adding the following as the last line in your batch file instead. RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True






share|improve this answer













Those settings are in the registry under HKCUControl PanelInternational



You can use reg.exe to make the changes manually. The easiest way to do that is to manually change your region and language to spanish (mexico) open a cmd window and type reg query "HKCUControl PanelInternational" which will show you the values as you want them. Then to modify them, use REG ADD "HKCUControl PanelInternational" /t REG_SZ /v LocaleName /d es-Mx /f for each value replacing what is after /v with the appropriate name and what is after /d with the appropriate value.



The other option is to just export the HKCUControl PanelInternational hive to a .reg file and just import it into the registry using regedit /s ImportFile.reg



You may need to refresh the registry after the import to see the changes. This usually involves a reboot but try adding the following as the last line in your batch file instead. RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 11 '14 at 12:26









Matt WilliamsonMatt Williamson

5,81611229




5,81611229













  • And for Windows Server 2008 R2 ?

    – Kiquenet
    Dec 21 '15 at 13:53



















  • And for Windows Server 2008 R2 ?

    – Kiquenet
    Dec 21 '15 at 13:53

















And for Windows Server 2008 R2 ?

– Kiquenet
Dec 21 '15 at 13:53





And for Windows Server 2008 R2 ?

– Kiquenet
Dec 21 '15 at 13:53


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f21689831%2fchange-regional-and-language-options-in-batch%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Homophylophilia

Updating UILabel text programmatically using a function

Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage