MD39.COM create directory
Simply issues the DOS function call to create a directory of the name specified. The only difference between this and the CLI is that this returns the error code in ERRORLEVEL. I use it in my start-up files to see if the RAMDRIVE exists. It's not commonly known that you can detect the existence of a directory in DOS by using IF EXIST DIR_NAME\CON ECHO DIRECTORY DIR_NAME EXISTS
KILLCMOS.COM kill CMOS ram
Invalidates the CMOS RAM. Very useful if you forget your BIOS password
and don't fancy taking the machine apart. Simply execute, reset and
the BIOS should come up with something like "CMOS checksum invalid",
"loading default values", and you are home.
Please note however that this may not work on some configurations.
Why not travel light and just use DEBUG to do it ?
Then issue a reset.
RESET.COM reset machine
Resets the machine. I don't bother with the shutdown byte, it's never caused any problems omitting this bit of PC'ocol. never timed it but I would guarentee that typing R,E,S,E,T, ENTER I can execute in less time than moving my forearms to get those awkward keys CTRL,ALT,DEL. There is also the bonus that it has been tailored to work in Win95 and Win98, but:
!! I HAVE NO LIABILITY IF YOU LOSE DATA/ SCREW YOUR HD DO NOT USE THIS PROGRAM IN WINDOZE !!
Obviously the reset protection in Windoze is because it's actually quite important to the system, still if you are in a DOS box it's quicker than CTRL+ESC,U,R ;)
SCANK.COM diag keyboard
Displays scan codes coming from the keyboard until you exit with ESC. Useful for checking out if keyboard has problems/where, also if you can't be bothered to keep referring to a scan key chart.
ASCK.COM output ascii code of keys typed
For each key pressed ASCK.ZIP displays, from left to right, the character input, it's ascii value (in HEX), it's ascii value (in DECIMAL). Press CTRL+C to finish.
ASCT.COM print out an ascii table
Don't have to have it taking up valuable wall space anymore. MODE CON LINES=50 is best for this, as else you get it scrolling off the top. Also ASCT /7 will just output the first 080h chars, and *this* will fit onto 80x24 screen (and probably more useful).
CD.COM set current directory
Functions almost exactly like the DOS equivalent except you can now use wildcards. In fact you can use wildcards anywhere in the path-name, then CD.COM does a recursive search to locate matching path's. If your path specification matches more than one path then all the possibilites are output (ie: it is an error)
Obviously now you can abbreviate all you dir names like in a proper OS. Only one sub-directory and you can get away with CD *. Forget where a directory is but you know that it was 3 down you can use CD *\*\DIR_NAME, in fact you could normally do that anyway as DIR_NAME is unlikely to be anywhere else at that depth..
CD /? will give help.
COLR.COM set system colours
Not many people seem to realise the you can have your own colour scheme in DOS. Okay, it *is* a gimmick, but it can also be useful if you are debugging and something has fiddled with the palette.
Syntax is: COLR [dac_reg [red green blue]]
All values are default hexadecimal. If you want use dec then prefix with an '@', binary prefix with '%' and octal an '0'. If no parameters are present COLR loads the system palette with the current settings in it's .INI file (COLR.INI). The INI file should be in the same directory as COLR.COM, if it can't find it it will create one (using current system palette settings).
If you only specify dac_reg then the current palette values of that reg are output. Else you specify the R,G,B components to set and the dac_reg will be set, system palette changes and the same values stored into COLR.INI.
NOTE: see also DEFPA.COM
DEFPA.COM default palette loading on/off
When you change MODE the BIOS ordinarily resets the system palette. This means that generally you have to keep typing COLR to get the palette back. This action can be changed because most BIOS's support 'default palette loading' on/off call.
This program simply allows you to set this feature in the BIOS. Type DEFPA 0 to turn off default palette loading, consequently if you change the text colour to GREEN using COLR it will stay GREEN after a mode change.
Of course sometimes a program happens to set colour 7 to BLACK (lot's of graphics programs will mess the palette about), then you will see a blank screen when it exits. Just type COLR to restore everything, or type DEFPA 1 before loading to turn on the default palette loading again. Alternatively you can just continue on working, who needs a screen anyway?
DU.COM file dump utility
Dumps file in standard hex format, ascii dump or binary. Many options give you some control over the format and the range can be specified in a variety of ways.
Type DU /? for usage.
ESC.COM DEBUG script create
DEBUG 'E' scripts are useful way of transferring binary data through non-binary data mediums. Though not particularly efficient in terms of size there is the advantage that most every system has DEBUG sitting on it's drives.
Creates a DEBUG script to create a binary file. The parameter given is the filename of the source, ESC outputs the script to stdout. Obviously you normally will redirect this to say 'FILE' then DEBUG <FILE will re-create the original. Due to the limits of DEBUG the original file must be <64k.
Type ESC /? for usage
LIST.COM list text file giving line numbers
syntax: LIST filename [start [end]]
Lists text file from start line given to end prefixing with line numbers. If no start line number is given then the whole text is listed, if no end line number is given then the text is listed from the start line to the end of the text.
Type LIST /? for useage
MO.COM VGA mode set
Saves a couple of dozen keypresses, you don't have to go into DEBUG anymore to set the screen mode just type MO followed by the (hexadecimal) VGA mode number. If no parameters are given it outputs the current mode number.
TCOV.COM convert text file UNIX->DOS, DOS->UNIX
One day I'm going to get this doing the 0Dh line end format also but at the moment it will convert those line ends from DOS<->UNIX only.
Syntax is: TCOV </U | /D> [source_file] [dest_file]
/U specifies that source file is UNIX type (0Ah line ends), /D specifies that source file is DOS type (0Dh,0Ah line ends). You MUST specify the source file type.
Type TCOV/? for usage.
TIME.COM set/display system/CMOS clock
Set's or displays the time/date in the system or the CMOS. Use /C to specify the CMOS clock, then if no parameters are given the current time/date is displayed. If you specify parameters time/date is set, the format is:
[time | date ]+
where; time = H:M[.S] (H=hour,M=minute,S=second)
date= D/M[/Y] (D=day,M=month,Y=year)
The year can be specified in full, or if the value is from 0 to 99 the program assumes 0 to 79 to be in the 21st century and 80 to 99 to be in the 20th. So this year you don't need to bother yourself having to type those silly 4 digit dates that we've now got everywhere.
UUCDEC.COM UNIX uuencode/uudecode utility
DOS version of the uuencode/uudecode utilities.
Type UUCDEC /? and info will be displayed on usage.
LMEM.COM memory mapper
Gives a diag output on the current MCB allocation in DOS.
DI.COM directory list
1st program I wrote for the PC! Main thing is, it displays file size in hexadecimal so you can actually read them. Oh, decimal file-sizes is so userish....
Apart from that it's not very complete. To list a directory you have to suffix the dir name with \, type DI /? for help, as you can see all you can do is specify which attributes are listed (default is ALL).
LDEV.COM device driver list
Gives diag output showing devices loaded into memory.