Can I Start particular program with different language settings in Windows

236

Solution 1

  • Create a new local user. (If the application you need in a different language needs administrator rights you should add the user to the local administrators group).
  • Log in with that user and change the Windows language of that account to English.
  • Log out
  • Log in with your usual user.
  • Run the application you want to see in a different language with the "Run As" method. (Shift+right click on the shortcut and select Run as different User)

You can create a batch with the RunAS command if you want ;-)

%comspec% runas /profile /user:yourotheruser "the_application_you_want_ to_run_in_english"

Solution 2

Locale Emulator works well on Windows 10 1809. I can run non-Unicode Simplified Chinese games on Windows with system locale set to Traditional Chinese with Locale Emulator!

Solution 3

I would suggest trying Microsoft's AppLocale.

It allows you to start a program using a different language.

Please note that because you are using Windows 7, you have to install it using an elevated command prompt. Instructions for installing AppLocale in Windows 7 can be found here.

Share:
236

Related videos on Youtube

user4895544
Author by

user4895544

Updated on September 18, 2022

Comments

  • user4895544
    user4895544 almost 2 years

    I am trying to run command line arguments from C# console app.

    Code is:

    string[] MyArguments = { "/c", @"'C:\Program Files (x86)\salesforce.com\Data Loader\bin\process.bat'",  "\"C:\\Program Files (x86)\\salesforce.com\\Data Loader\\samples\\conf\"", "accountMasterProcess" };
    
    ProcessStartInfo startInfo = new ProcessStartInfo();
                Process process;
                startInfo.FileName = "cmd.exe";
                startInfo.Arguments = String.Join(" ", MyArguments);
    
    
                process = Process.Start(startInfo);
                startInfo.RedirectStandardError = true;
                startInfo.RedirectStandardOutput = true;
                process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
                process.StartInfo.RedirectStandardOutput = true;
                process.StartInfo.UseShellExecute = false;
                process.OutputDataReceived += (sender, arg) => Console.WriteLine("received output: {0}", arg.Data);
                process.Start();
                //process.BeginOutputReadLine();
                process.WaitForExit();
                string output = process.StandardOutput.ReadToEnd();
                string error = process.StandardError.ReadToEnd();
    
                exitCode = process.ExitCode;
    
                Console.WriteLine("output>>" + (String.IsNullOrEmpty(output) ? "(none)" : output));
                Console.WriteLine("error>>" + (String.IsNullOrEmpty(error) ? "(none)" : error));
                Console.WriteLine("ExitCode: " + exitCode.ToString(), "ExecuteCommand");
                process.Close();
    

    I don't see any results in cmd window. The actual arguments in cmd window is:

    C:\Program Files (x86)\salesforce.com\Data Loader\bin>process.bat "C:\Program Files (x86)\salesforce.com\Data Loader\samples\conf" accountMasterProcess
    

    Please help

    • Mathias R. Jessen
      Mathias R. Jessen almost 8 years
      What's with the / in front of C:\?
    • user4895544
      user4895544 almost 8 years
      It was a mistake. It should have been /c to consider it as a command. Thank you for pointing
  • Atilla Ozgur
    Atilla Ozgur over 12 years
    Thanks for answer. I tried but did not work for me.
  • user4895544
    user4895544 almost 8 years
    so where should I be adding /c if these are the arguments 1st argument is for changing the directory, rest are cmd arguments { @"C:\\Program Files (x86)\\salesforce.com\\Data Loader\\bin", "process.bat", "\"C:\\Program Files (x86)\\PathName"", "BeanName"};
  • Admin
    Admin almost 8 years
    At the start of MyArguments string[] MyArguments = { "/c", @"/C:\\Program Files (x86)\\salesforce.com\\Data Loader\\bin", "process.bat", "\"PathName"", "BeanName"};
  • user4895544
    user4895544 almost 8 years
    output>>(none) error>>The filename, directory name, or volume label syntax is incorrect. Getting this error. Has edited the Original Post
  • Admin
    Admin almost 8 years
    That's odd to be getting The filename, directory name, or volume label syntax is incorrect. What is process.bat?
  • user4895544
    user4895544 almost 8 years
    It's a batch file having IF "%JAVA_HOME%" == "" ( echo To run process.bat, set the JAVA_HOME environment variable to the directory where the Java Runtime Environment ^(JRE^) ) ELSE ( IF NOT EXIST "%JAVA_HOME%" ( echo We couldn't find the Java Runtime Environment ^(JRE^) in directory "%JAVA_HOME%". To run process.bat, set the JAVA_HOME environment variable to the directory where the JRE is installed. ) ELSE ( "%JAVA_HOME%\bin\java" -cp ..\dataloader-37.0.0-uber.jar -Dsalesforce.config.dir=%1 com.salesforce.dataloader.process.ProcessRunner %PROCESS_OPTION%
  • Admin
    Admin almost 8 years
    Ahh okay, I think that the C# script is working, beacuse usually The filename, directory name, or volume label syntax is incorrect. is something to do with a batch syntatx error.
  • Ska
    Ska over 7 years
    None of the links work any longer, so this is a useless answer.
  • Nicolas Raoul
    Nicolas Raoul about 7 years
    The links say: "We're sorry, this download is no longer available." and "Error establishing a database connection"
  • fixer1234
    fixer1234 over 5 years
    LOL, The site identifies you as a new contributor, but it looks like you've been a member for 7 yrs. Maybe first time posting? Anyway, the question is specifically about Win 7. It's useful to provide updated information, but do you happen to know if this also works for Win 7? It would also be good to include relevant information like the fact that this isn't ready to use out-of-the-box, and also requires other software. BTW, good guidance on recommending software here: meta.superuser.com/questions/5329/….
  • Meng-Yuan Huang
    Meng-Yuan Huang over 5 years
    Thanks for your notification. However, I think my answer for Win 10 still has meanings for this question, because this question title doesn't limit the Windows version. People, like me, could search to this question for an answer for Win 10 by search engine. Isn't it?
  • fixer1234
    fixer1234 over 5 years
    Yeah, no issue with the fact that it's known to work in Win 10, that can be valuable for current readers. I was mainly referring to additional information that would make it a better answer. :-)
  • Rules
    Rules over 4 years
    WOW you are awesome, @NetVivious
  • Ciro Santilli Путлер Капут 六四事
    Ciro Santilli Путлер Капут 六四事 almost 4 years
    For Windows 10, the Locale Emulator worked: superuser.com/a/1384964/128124
  • SATO Yusuke
    SATO Yusuke over 3 years
    This works even if the binary has a digital signature (ex. Eclipse or OpenAdoptJDK). Note that the batch above doesn't work for Eclipse. Thanks!
  • SATO Yusuke
    SATO Yusuke over 3 years
    This answer is informative, but Locale Emulator doesn't work for the binary with a digital signature (ex. Eclipse or OpenAdoptJDK).
  • SATO Yusuke
    SATO Yusuke over 3 years
    Note that if the application shows UAC before launching (ex. resmon.exe), you have to add the administrator privileges to the new local user. Otherwise, you cannot select the new local user in the UAC dialog, and the application will launch with the current user.
  • NetVicious
    NetVicious over 3 years
    Added a little note to my answer using your tip. Thanks for the note.
  • Homayoon Ahmadi
    Homayoon Ahmadi over 2 years
    Not works on 64bit apps