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 effect 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. "-", "/".
SWITCHAR is used by command.com and some but by far not all external
commands and drivers.
SWITCHAR is a command internal to kernel.sys and needs no other file
in order to work.
Examples:
IN CONFIG.SYS / FDCONFIG.SYS:
switchar=-
Instead of
dir /p you then would have to enter
dir -p .
See also:
config.sys
fdconfig.sys
Copyright © 2003 Robert Platt, updated 2008 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.