Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

magic (internal) variables #57

Open
PerditionC opened this issue Jun 19, 2021 · 0 comments
Open

magic (internal) variables #57

PerditionC opened this issue Jun 19, 2021 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@PerditionC
Copy link
Contributor

4DOS has support for many magic variables as does current command processors (think CMD.EXE instead of COMMAND.COM). Consider adding support for some of them optionally compiled in. (Can this be done in a manner that doesn't bloat FreeCOM?)

Please add comments with any particular "internal variables" that are likely to be broadly useful:
e.g.:
%_CPU - to get if current computer is 386 or not
%_LASTDRIVE - last available drive letter
%_ANSI - is ANSI loaded, i.e. can ANSI escape sequences be used
%@name[file] - to get base portion of a filename
%@ext[filename] - to get filename's extension
%@path[filename] - to get filename's path excluding filename

or versions
%_DOSVER to get the OS version
%_DOS to get the operating system
%_4DOS to get the 4DOS version <-- use %_FREECOM maybe? or %_CMDVER

or other commands
%@Label[drive] - get drive's volume label, i.e. to do different things when ran on different drives or basic safety checks

@PerditionC PerditionC added enhancement New feature or request question Further information is requested labels Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant