Programming Field

Switch - DOS/Command Prompt Reference

* This command is available only in non-English version of MS-DOS (i.e. Japanese version or etc.)

[MS-DOS only] Switches the current environment (English or non-English) and restarts the computer.

Note: The below data is researched in Japanese MS-DOS. The syntax and etc. may differ from non-Japanese MS-DOS.

Syntax

switch[.exe]

Details

In Japanese MS-DOS, the Switch program switches between the Config.sys and Autoexec.bat files for the Japanese environment and the English environment, and restarts the computer to make them effective. In practice, when Switch is executed in the Japanese environment, it renames ‘Config.sys’ to ‘Config.jp’ and ‘Autoexec.bat’ to ‘Autoexec.jp’, then renames ‘Config.us’ to ‘Config.sys’ and ‘Autoexec.us’ to ‘Autoexec.bat’. The reverse process occurs when executed in the English environment. Before the switch, a prompt is displayed asking for confirmation and providing any necessary precautions.

If you simply want to switch display modes, you can use Chev or Chcp.

Please note that you should not execute Switch when Windows or DosShell is running.