VOGONS


First post, by Sleaka_J

User metadata
Rank Newbie
Rank
Newbie

I'm tearing my hair out with this one.

I'm using 4DOS on a SvarDOS installation and when typing DIR the file sizes shown do not have comma separators like the regular COMMAND.COM shell does. And it just seems to be ONLY the individual file sizes that don't show it, the total bytes used and free space at the end uses the comma separators.

As an example, here's what it will show:

<Directories>
AUTOEXEC.BAT 563 <date and time>
COMMAND.COM 25673 <date and time>
CONFIG.SYS 494 <date and time>
KERNEL.SYS 58923 <date and time>
ETC

Here's what I want it to show:

<Directories>
AUTOEXEC.BAT 563 <date and time>
COMMAND.COM 25,673 <date and time>
CONFIG.SYS 494 <date and time>
KERNEL.SYS 58,923 <date and time>

I know it's only a minor change, but isn't customising the look of this kinda thing what we like?

Is it even possible to get 4DOS to show the commas?

Reply 1 of 2, by DaveDDS

User metadata
Rank Oldbie
Rank
Oldbie

Assuming 4DOS has a "normal" DOS disk/direcrory structure, and can run "normal" DOS programs...

You could use my XDIR.COM (which includes ','s in sizes - I just added an option to suppress - so you can have it both ways):

use:    XDIR [filespec] [options]

opts: /2 24 hour time
/A[+-]adehrs File must have Attributes ('e' =accept Every)
/B Bare format
/C Compact format (default with /O)
/E show sEconds
/F Files only (no dirs) in list (default with /SCB)
/L use Lower case
/M show Memory use
/N No commas
/S list Subdirs
/T directories Trail filenames
/U no sUmmary
/W Wide format
/O[-!]o list in Order ('-' = reverse)
o: 'D'ate, 'E'xtension, 'N'ame, 'S'ize (/C unless '!')

Wildcards work like they do in UNIX, ie: '.' has so special meaning:
use '*' for ALL files, '*.*' means name must contain '.'

Dave Dunfield - 2026/2/8

I originally wrote this to replace/supplement the limited DIR command in DosBox, but I use it on "read DOS" systems very often - It's nice to be able to list a complete subdirectory tree sorted by timestamp is compact format!

You can get it from my site downloads in DBUTIL.ZIP

Dave ::: https://dunfield.themindfactory.com ::: "Daves Old Computers"->Personal

Reply 2 of 2, by DaveDDS

User metadata
Rank Oldbie
Rank
Oldbie

I should also point out that XDIR list entries are in a different order than DOS "DIR"
-> DIR shows: name(with spaces instead of '.'), size, timestamp
-> XDIR shows: timestamp, size, name(iwth '.')
Makes more sense to me as names can be longer (and can incl dir)

Timestamps are also shown differently:
-> DIR: dd-mm-yyyy
-> XDIR: yyyy-mm-dd
Makes more as it sorts properly.

> dir

 Directory of R:\TST\.
. <DIR> 08-02-2026 10:23
.. <DIR> 01-01-1980 0:00
FILE1 A 650 08-02-2026 10:24
FILE2 B 310,717 08-02-2026 10:24
FILE3 C 1,448,373 08-02-2026 10:25
3 File(s) 1,759,740 Bytes.
2 Dir(s) 262,111,744 Bytes free.

> xdir

 Directory of R:\tst\*

2026-02-08 10:23 Am <DIR> .
1980-01-01 12:00 Am <DIR> ..
2026-02-08 10:24 Am 650 FILE1.A
2026-02-08 10:24 Am 310,717 FILE2.B
2026-02-08 10:25 Am 1,448,373 FILE3.C
3 Files(s) 1,759,740 bytes.

> xdir /cfu

26-02-08 10:24a          650 R:\tst\FILE1.A
26-02-08 10:24a 310,717 R:\tst\FILE2.B
26-02-08 10:25a 1,448,373 R:\tst\FILE3.C

[this can make listings of larger trees much easier to work with]

Dave ::: https://dunfield.themindfactory.com ::: "Daves Old Computers"->Personal