VOGONS


First post, by Projanglez

User metadata
Rank Newbie
Rank
Newbie

I've been working on a little tool now for a while, and deciced to release it to public:

TAB4DOS v1.0.0

A small resident utility (9kb TSR) for MS-DOS that adds bash-style TAB completion, command history, and command-line editing to the standard COMMAND.COM prompt:

1czUavw.gif

Download / source
Release v1.0.0 (tab4dos.exe)
Source on GitHub


Features

  • TAB / Shift+TAB — complete and cycle matches (forward / backward) for files, directories, path fragments, DOS internal commands, and executables found on PATH.
  • Up / Down — browse command history (64 entries), replaces DOSKEY
  • Line editing — Left/Right, Home/End, Del, Ins (insert/overwrite), Ctrl+Left/Ctrl+Right (jump word), ESC (clear line).
  • Small footprint — ~9 KB resident. The command list and the history ring are kept in small files (TAB4DOS.IDX / TAB4DOS.HST) next to the EXE (or in %TEMP% with /usetemp), not in resident memory; with SmartDrive these reads/writes are effectively RAM-speed.
  • See full changelog for more details

Usage

tab4dos          install (resident)
tab4dos /u uninstall
tab4dos /? help

Full readme on Github: https://github.com/Projanglez/TAB4DOS

Notes

  • Tested on real 386 hardware. Not tested under DOSBox — DOSBox has its own TAB completion that overlays this one, so results there are not meaningful.
  • Free and open source (MIT).
  • This software was developed with the help of an AI coding assistant (Claude Code).

Feedback and reports are very welcome!

Reply 1 of 13, by jmarsh

User metadata
Rank Oldbie
Rank
Oldbie

Didn't 4DOS have this as a built-in feature?

Reply 2 of 13, by ajacocks

User metadata
Rank Member
Rank
Member

Nice work!

- Alex

Reply 3 of 13, by jakethompson1

User metadata
Rank l33t
Rank
l33t

Hello,
What happens if you load this in autoexec.bat, then go into Windows and open multiple DOS prompts?
Doskey has a lot behind the scenes to make this work. Undocumented DOS and Unauthorized Windows 95 get into this.
You might have to hook INT 2Fh AX=4B05h and INT 2Fh AX=1605h

Reply 4 of 13, by aVd

User metadata
Rank Member
Rank
Member

Hi, @Projanglez,
This is a very nice project, but when it comes to "DOS internal commands" is TAB4DOS compatible with different versions of mS and non-m$ command line interpreters (and even substitutes like 4DOS.COM) or it just has internally hardcoded some of the most common commands like DIR, DEL, COPY, CLS, etc.?

SvarDOS fan :: artificial "intelligence" bots - not a fan at all :: say NO to systemd :: is freeware a lie, when human freedom is a fundamental lie? :: f00ck €u!

Reply 5 of 13, by maxtherabbit

User metadata
Rank l33t
Rank
l33t

Not to rain on your parade, but newer versions of doskey such as those included with freedos have tab completion already

Reply 6 of 13, by Projanglez

User metadata
Rank Newbie
Rank
Newbie
jakethompson1 wrote on 2026-06-27, 04:52:
Hello, What happens if you load this in autoexec.bat, then go into Windows and open multiple DOS prompts? Doskey has a lot behin […]
Show full quote

Hello,
What happens if you load this in autoexec.bat, then go into Windows and open multiple DOS prompts?
Doskey has a lot behind the scenes to make this work. Undocumented DOS and Unauthorized Windows 95 get into this.
You might have to hook INT 2Fh AX=4B05h and INT 2Fh AX=1605h

Tested it briefly and seems to work out of the box 😀 Please let me know if you find something different.

Reply 7 of 13, by Projanglez

User metadata
Rank Newbie
Rank
Newbie
aVd wrote on 2026-06-27, 14:07:

Hi, @Projanglez,
This is a very nice project, but when it comes to "DOS internal commands" is TAB4DOS compatible with different versions of mS and non-m$ command line interpreters (and even substitutes like 4DOS.COM) or it just has internally hardcoded some of the most common commands like DIR, DEL, COPY, CLS, etc.?

TAB4DOS auto-complete list consists of the following:

- all ms dos 6.22 commands, hard-coded
- all executables in your %path%
- all files in the current directory

Regarding 4DOS specifically: TAB4DOS hooks INT 21h AH=0Ah (DOS buffered input), so it only kicks in for shells that read their command line through that function, like plain COMMAND.COM. 4DOS has its own line editor with its own (much more capable) completion and doesn't use 0Ah for it, so TAB4DOS would simply stay dormant there — it's really meant for people who want to stick with the stock COMMAND.COM.

Reply 8 of 13, by Projanglez

User metadata
Rank Newbie
Rank
Newbie

New release: TAB4DOS v1.1.1

Download: https://github.com/Projanglez/TAB4DOS/releases/latest

  • New: When completing the first word of the line, executables (.EXE/.COM/.BAT) are cycled first, then the remaining entries. A short PC-speaker chirp signals the switch between the groups.
  • Fixed: Completion could miss files in directories with more than 64 entries.
  • Fixed: Command completion could miss executables from later PATH directories (index cap raised from 128 to 512 entries; still no extra resident memory, the index lives on disk).

Feedback and bug reports welcome!

Reply 9 of 13, by aVd

User metadata
Rank Member
Rank
Member
Projanglez wrote on Yesterday, 12:33:
TAB4DOS auto-complete list consists of the following: […]
Show full quote

TAB4DOS auto-complete list consists of the following:

- all ms dos 6.22 commands, hard-coded
- all executables in your %path%
- all files in the current directory

Regarding 4DOS specifically: TAB4DOS hooks INT 21h AH=0Ah (DOS buffered input), so it only kicks in for shells that read their command line through that function, like plain COMMAND.COM. 4DOS has its own line editor with its own (much more capable) completion and doesn't use 0Ah for it, so TAB4DOS would simply stay dormant there — it's really meant for people who want to stick with the stock COMMAND.COM.

Thanks for the answer and the new version of TAB4DOS!

So, TAB4DOS is not an universal in its internal DOS commands completion, but still it is better, than Enhanced DOSKEY for DOS, which has no support for internal DOS commands at all.

SvarDOS fan :: artificial "intelligence" bots - not a fan at all :: say NO to systemd :: is freeware a lie, when human freedom is a fundamental lie? :: f00ck €u!

Reply 10 of 13, by Projanglez

User metadata
Rank Newbie
Rank
Newbie
aVd wrote on Yesterday, 13:27:

So, TAB4DOS is not an universal in its internal DOS commands completion, but still it is better, than Enhanced DOSKEY for DOS, which has no support for internal DOS commands at all.

Do you have a specific use case, or is your question rather of scientific nature? It would be easy to check DOS version and then only put version-specific commands into the autocomplete index. But I'd love to see at least one person benefitting from it, before implementing it. I thought most if not all retrofans go with DOS 6.22 or 7.

Reply 11 of 13, by aVd

User metadata
Rank Member
Rank
Member

No, I don't have any specific use case, but I don't use m$-DOS 6.xx. I prefer version 7.10 or better off SvarDOS.

SvarDOS fan :: artificial "intelligence" bots - not a fan at all :: say NO to systemd :: is freeware a lie, when human freedom is a fundamental lie? :: f00ck €u!

Reply 12 of 13, by Projanglez

User metadata
Rank Newbie
Rank
Newbie

I see! Should work in SvarDOS as well, as long as the executables are in the path.

Reply 13 of 13, by igully

User metadata
Rank Member
Rank
Member

@Projanglez

Thank you for you project.

Would you consider adding keyboard macros and command alias features? What about LFN support?
With those it could be a very competitive DOSKEY like replacement.