ArticleslgStudy

computer science

4DOS

4DOS is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand 4DOS rather than just read about it. In short: 4DOS is a command-line interpreter by JP Software, designed to replace the default command interpreter COMMAND.COM in MS-DOS and Windows. It was written by Rex C.

Key takeaways

  • 4DOS belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect 4DOS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of 4DOS from memory before moving on to harder problems.

Reference excerpt

4DOS is a command-line interpreter by JP Software, designed to replace the default command interpreter COMMAND.COM in MS-DOS and Windows. It was written by Rex C. Conn and Tom Rawson and first released in 1989. Compared to the default, it has a large number of enhancements. 4OS2 and 4NT are similar products that replace cmd.exe in OS/2 and Windows NT respectively.

Overview 4DOS is most often used as a command-line replacement for the following operating systems:

command-line: MS-DOS, IBM PC DOS, DR-DOS. graphical: Windows 95 to Windows 98, Windows 98SE. Since Windows NT and Windows 2000 include both COMMAND.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 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, in the freeware os2free project, and is included with ArcaOS. 4NT was first released as 4DOS for Windows NT (versions 1.x, 2.x), 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 (cmd.exe), 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 (Windows 9x) and Unicode (Windows NT) forms, with the ANSI version dropped at version 5. A new Win32 program Tabbed Command Interface (TCI), was released at the time of 4NT version 7. This program allowed one to attach (thereby reducing screen clutter) 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 (full pack of TCI + TCC) TCLE (TCI + TCC/LE) TCC (just the command utility) TCC/LE This has been released from versions 9 to 12.1, corresponding to the underlying 4NT/TCC version.

Features 4DOS features a number of enhancements compared to COMMAND.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 Support for creating, maintaining and displaying file metadata Configuration stored in an INI file Support for the Windows clipboard

File metadata The file named DESCRIPT.ION contained plain text that encoded metadata about files and directories. Support for this metadata was introduced in 1989. Known IDs include:

0x10 General metadata in XMP format. 0x23 ('#') Used by various utilities written by Matthias R. Paul for space-separated lists of text key=value pairs holding file properties as extended attributes like CP (codepages), PC (language codes), CW (bit-width), XS (page width), YS (page length), XO (print x-offset), YO (print y-offset), CR (copyright), URL (source link), etc. 0x25 ('%') Used by programs using CUI_LIB to store pseudo-environment variables. 0xED Reserved for Digital Research/Novell/Caldera. 0xC2 Used by Total Commander for multiline file descriptions. 0xFD Reserved for FreeDOS.

Versions Originally distributed as shareware, 4DOS was later released as unsupported freeware. Currently, the source code is available under a modified MIT License but it "may not be used in any commercial product without written permission from Rex C. Conn" and "may not be compiled for use on any operating system other than FreeDOS" – so does not qualify as open source as defined by Open Source Initiative. The last update by JP Software was version 7.50.130, released in August 2004.

NDOS Some versions of the Norton Utilities for DOS included modified copies of 4DOS called NDOS. The last version of NDOS was bundled with Norton Utilities 8, and corresponded to 4DOS 4.03.

See also AUTOEXEC.BAT Comparison of command shells ZCPR – a CCP replacement for CP/M

References

External links JP Software, creator of 4DOS but no longer supports it. Currently sells similar Take Command for Windows. Unofficial 4DOS support site with many batch examples, related documents and programs 4DOS shareware and freeware downloads 4DOS 7.50 Reference Manual (2 MB PDF)

Worked examples

Example 1 — a first encounter with 4DOS

Start with the simplest possible case. Write down what 4DOS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to 4DOS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about 4DOS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of 4DOS

In research
4DOS appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses 4DOS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
4DOS is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1988 software, DOS command shells, DOS software, so understanding it makes those chapters shorter.
In everyday life
Look for 4DOS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “4DOS” →

How to study 4DOS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what 4DOS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain 4DOS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is 4DOS in simple terms?

4DOS is a command-line interpreter by JP Software, designed to replace the default command interpreter COMMAND.COM in MS-DOS and Windows. It was written by Rex C.

Why does 4DOS matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study 4DOS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on 4DOS.

Tags

  • 1988 software
  • DOS command shells
  • DOS software
  • Windows command shells

Keep exploring