This table lists some built-in MS-DOS local command-interpreter variables and their equivalent BlackBerry 10 OS environment variables or commands.
| DOS Local | BlackBerry 10 OS equivalent |
|---|---|
| %CD% | PWD |
| %COMPUTERNAME% | HOSTNAME |
| %COMSPEC% | SHELL |
| %DATE% | Run the
date
utility:
$(date) |
| %ERRORLEVEL% | $? (see Parameters in the documentation for ksh) |
| %HOMEDRIVE% | BlackBerry 10 OS doesn't use drive letters; see %HOMEPATH% |
| %HOMEPATH% | HOME |
| %OS% | Run the
uname
utility:
$(uname) |
| %PATH% | PATH |
| %PATHEXT% | BlackBerry 10 OS 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% | BlackBerry 10 OS 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 |