4DOS
4DOS is a command-line interpreter by JP Software, designed to replace the default command interpreter
COMMAND.COM
in DOS and Windows 95/Windows 98/Windows 98SE/Windows Me. 4OS2 and 4NT replace cmd.exe
in OS/2 and Windows NT respectively. 4DOS was written by Rex C. Conn and Tom Rawson; it was first released in 1989. These programs can also be initiated from the command line and/or called by scripts.Overview
4DOS is most often used with the MS-DOS-Windows 95 stream of operating systems and it can be also used with Windows NT type machines, IBM PC DOS and DR-DOS versions. Since Windows NT-2000 includes bothCOMMAND.COM
and cmd.exe
, 4DOS and 4NT and derivatives can both be installed. Earlier versions of 4OS2 can be run under Windows NT, and OS/2 can run the two DOS and Windows NT shells, all three can be used on Windows NT-type machines and OS/2 multiple boot machines.Among the many commands, statements and functions in 4DOS and lacking in MS-DOS/Windows 95/98
COMMAND.COM
are reading keyboard input and a simpler method of working with colors of screen and text.The default file extension for 4DOS scripts is.btm.
A graphical version of 4DOS, 4OS2, and 4NT, called Take Command, was released with a feature set corresponding to version 4DOS 5.5, 4OS2, and 4NT 2.5 and updated after this. Development on this line stopped with the corresponding text mode versions. There was a graphical program Take Command/16, for Windows 3.1.
4OS2 is a similar replacement for IBM's OS/2 command interpreter. This was first released at the same time as 4DOS version 4, and has a similar feature set. Like 4DOS, this is released as open source. It appeared in the feature set of 2011's eComStation 2.10, and in the freeware os2free project.
4NT was first released as 4DOS for Windows NT, but became 4NT until the restructure after version 8. The program is a recompilation of 4OS2, and continues to have features of OS/2's command processor, such as running REXX scripts, and EXTPROC support. A corresponding Take Command/32 exists for this, version 1 corresponding to 4NT 2.5. 4NT and Take Command/32 were released in both ANSI and Unicode forms, with the ANSI version dropped at version 5.
A new Win32 program Tabbed Command Interface, was released at the time of 4NT version 7. This program allowed one to attach and detach tabbed consoles to a single window. This program requires Windows XP or later.
A new version of Take Command extends the original Tabbed Command Interface, expanded with extra windows to allow input to be composed, to graphically navigate directories and files, and extra features. 4NT is bundled as Take Command Console. A light feature-reduced version of TCC is released as a free download.
JP Software then released:
- TC
- TCLE
- TCC
- TCC/LE
Features
4DOS features a number of enhancements compared toCOMMAND.COM
:- Additional commands
- Extended functionality of existing commands
- Extended batch file processing facilities
- Improved command line editing, including filename completion and command history
- Support for command aliases, also in scripts
- Enhanced wildcards and the ability to filter by file sizes, date and time stamps, and other file characteristics
- Extended syntax for redirection and piping
- Context-specific help
- Colored directory listings
- Internal variables and variable functions
- A memory swapping mechanism that yielded more free conventional memory
- An interactive debugger for batch files
- A mechanism for creating, maintaining and displaying file descriptions
- Configuration stored in an INI file
- Support for the Windows clipboard
History and current status
The last update by JP Software was version 7.50.130, released in August 2004. During its 15-year history, 4DOS underwent numerous updates; here are a few of the most significant.
Version | Released | New features |
2.00 | 1989-02-15 | Original release. Improved command-line editing, filename completion, command history, aliases, improved wildcards, online help, internal variables, swapping to disk or EMS, file descriptions, command separator, key stacker. |
2.20 | 1989-07-05 | Executable extensions. |
3.00 | 1990-03-07 | BTM batch files, extended memory swapping, variable functions, bracket variable-name syntax. |
4.00 | 1991-11-01 | Colored directory listings, 4DOS.INI configuration file, include lists, command groups, implied CDD, DOS 5 Upper Memory Blocks support. |
5.00 | 1993-11-23 | Date, time, and size ranges; compressed batch files. |
5.51 | 1995-08-22 | Long filename support, REXX in.BAT files. |
6.00 | 1997-07-24 | Extended directory searches, interactive configuration, exclusion ranges, interactive batch file debugger. |
7.00 | 2001-06-18 | @file lists. |
7.50 | 2003-02-24 | User-defined functions. |
7.50.1 | 2006-11-13 | Open source version of 7.50. Luchezar Georgiev and Jaelani Utomo have continued developing 4DOS. |
8.00 | 2009-02-27 | Latest version. |