MS-DOS local command-interpreter variables

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

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

$(date)

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

$(uname)

%PATH% PATH
%PATHEXT% 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% 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