MS-DOS local command-interpreter variables

This table lists some built-in MS-DOS local command-interpreter variables and their equivalent QNX Neutrino environment variables or commands.

DOS Local QNX Neutrino equivalent
%CD% PWD, pwd
%COMPUTERNAME% HOSTNAME
%COMSPEC% SHELL
%DATE% Run the date utility:

$(date)

%ERRORLEVEL% $? (see "Parameters" in the documentation for ksh)
%HOMEDRIVE% QNX Neutrino doesn't use drive letters; see %HOMEPATH%
%HOMEPATH% HOME
%OS% Run the uname utility:

$(uname)

%PATH% PATH
%PATHEXT% QNX Neutrino treats file extensions as part of the filename. Executable status is a file permission. See chmod.
%PROCESSOR_ARCHITECTURE% Run the uname utility:

$(uname -p)

%PROCESSOR_IDENTIFIER% Run the uname utility:

$(uname -n)

%PROMPT% PS1, PS2 (see "Parameters" in the documentation for ksh, and ".kshrc" in the Examples appendix)
%RANDOM% RANDOM
%SYSTEMDRIVE% QNX Neutrino doesn't use drive letters; the system root is always /.
%SYSTEMROOT% The system root is always /.
%TEMP% TMPDIR
%TMP% TMPDIR
%TIME% Run the date utility:

$(date)

%USERNAME% LOGNAME