Command: switchar

  SWITCHAR sets a switch character.
  SWITCHAR is a CONFIG.SYS / FDCONFIG.SYS command.

Syntax:

  switchar=c
    Sets the default switchar to character c.

Options:

  - none -

Comments:

  SWITCHAR sets the default switchar to the given character c, e.g. "-".
  Where c is a single character that is used to indicate a command line
  parameter in an option switch. The default is a forward slash (/).
  Note: This simply sets the value returned by a get switchar query, it
  will not affect programs that use hardcoded switch characters.
  The switch character is the sign before an option so that DOS knows,
  that the following text is an option, e.g. the "/" in dir /w.
  Typical switch characters are e.g. "-" (Linux) or "/" (DOS).
  SWITCHAR is used by command.com and some but by far not all external
  commands and drivers.
  CAUTION! As most FreeDOS option parameters are "/" you should use
  SWITCHAR only under SPECIAL circumstances as the "/" character in
  AUTOEXEC.BAT / FDAUTO.BAT is NO LONGER interpreted as an option if
  you change to "-" in CONFIG.SYS / FDCONFIG.SYS!
  You can find out which SWITCHAR is set by typing MODE.
  You can also change the switchar by typing MODE CON: SWITCHAR=VALUE
  in a running system.
  SWITCHAR is a command internal to kernel.sys and needs no other file
  in order to work.

Examples:

  IN CONFIG.SYS / FDCONFIG.SYS:
    switchar=/
    As FreeDOS sets this option automatically it is NOT recommended
    to add this command. Be careful with "switchar=-".

See also:

  autoexec.bat/fdauto.bat
  config.sys/fdconfig.sys
  config.sys/fdconfig.sys
  mode
  switches
  syntax

  Copyright © 2003 Robert Platt, updated 2008 and 2022 by W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.