VOGONS


First post, by keropi

User metadata
Rank l33t++
Rank
l33t++

Hiya!!!

I have noticed that when I select the EMS config on my 486 with windows98-DOS , the dir command does not work so well!
It does not lists as it should , ie. directories first, then files and in alphabetical order, but it lists a mix or files and dirs, without alphabetical order at all... wth? I need to type: dir /o to get a proper listing!
That has never happened to me IIRC in my ~20years DOS experience!
Do I need to set the DIRCMD variable in the EMS config? and WHY!?
anyone faced this issue before?

🎵 🎧 PCMIDI MPU , OrpheusII , Action Rewind , Megacard and 🎶GoldLib soundcard website

Reply 1 of 9, by ux-3

User metadata
Rank Oldbie
Rank
Oldbie

iirc, dir lists the stuff in order of entry in the dir structure. With legacy dos, too. I remember no sorting. It was possible to have other software sort dirs for you. Then they display sorted. x-tree comes to mind

Reply 2 of 9, by keropi

User metadata
Rank l33t++
Rank
l33t++

AFAIK dir by default sorts alphabetically, first dirs then files. That it how I always remembered it from PC-DOS5 and afterwards.... it behaves OK in my other configs, only in the EMS one it does that...

🎵 🎧 PCMIDI MPU , OrpheusII , Action Rewind , Megacard and 🎶GoldLib soundcard website

Reply 3 of 9, by ux-3

User metadata
Rank Oldbie
Rank
Oldbie

any entries in autoexec responsible?

en.wikipedia.org/wiki/Dir_(command)

states: In DOS and Microsoft Windows, dir checks for switches in the %dircmd% environment variable.

That would explain it!

Reply 4 of 9, by keropi

User metadata
Rank l33t++
Rank
l33t++

here are my config and autoexec :

[MENU]
MENUITEM=XMS
MENUITEM=XMS_with_CD-ROM_support
MENUITEM=EMS
MENUDEFAULT=XMS,60

[XMS]
device=c:\dos\himem.sys
BUFFERS=10
DOS=NOAUTO,HIGH,UMB
FILES=40
STACKS=12,256

[XMS_with_CD-ROM_support]
device=c:\dos\himem.sys
device=c:\utils\cdrom.sys /d:CD0
BUFFERS=10
DOS=NOAUTO,HIGH,UMB
FILES=40
STACKS=12,256

[EMS]
devicehigh=c:\dos\himem.sys
devicehigh=c:\utils\cdrom.sys /d:CD0
device=c:\dos\emm386.exe ram
BUFFERS=10
DOS=HIGH,NOAUTO,UMB
FILES=40
STACKS=12,256

[COMMON]
@Echo Off
GOTO %CONFIG%
:XMS
SET PATH=c:\utils;C:\UTILS\UFO;c:\utils\dn;c:\DOS
SET TEMP=C:\TEMP
LH C:\utils\ctmouse.exe
GOTO SOUND

:XMS_with_CD-ROM_support
SET PATH=c:\utils;C:\UTILS\UFO;c:\utils\dn;c:\DOS
SET TEMP=C:\TEMP
C:\utils\shcdx33c /d:CD0
LH C:\utils\ctmouse.exe
GOTO SOUND

:EMS
SET PATH=c:\utils;C:\UTILS\UFO;c:\utils\dn;C:\DOS
SET TEMP=C:\TEMP
C:\utils\shcdx33c /d:CD0
LH C:\utils\ctmouse.exe
GOTO SOUND

:SOUND
rem SET BLASTER=A220 I5 D1 H5 P300 T6
rem C:\SB16\DIAGNOSE /S
rem C:\SB16\MIXERSET /P /Q
GOTO END
:END

anyone spots anything unusual?

🎵 🎧 PCMIDI MPU , OrpheusII , Action Rewind , Megacard and 🎶GoldLib soundcard website

Reply 6 of 9, by Malik

User metadata
Rank l33t
Rank
l33t

There is nothing wrong in your boot files.

If you're using MS-DOS 6 or above, try this :

defrag c: /se

Explanation : defrag and sort in the order of extensions. The defrag will automatically quit after it's function.

then type dir and see.

Defragmentation programs can cause messed up appearance. File navigators and dos shells can also cause this inconvenience. Apply the required sorts from within the shells or the programs.

Another method is to type the following in your Autoexec.bat file :

set dir=dir /w /p /o(x)....

which will create the environment variable for the DIR command, defaulting to the parameters you specify in the set environment.

5476332566_7480a12517_t.jpgSB Dos Drivers

Reply 7 of 9, by keropi

User metadata
Rank l33t++
Rank
l33t++

but what BOTHERS me, is that it only happens in the EMS configuration!!!

🎵 🎧 PCMIDI MPU , OrpheusII , Action Rewind , Megacard and 🎶GoldLib soundcard website

Reply 8 of 9, by Malik

User metadata
Rank l33t
Rank
l33t

Try running memmaker to relocate the ems page frames, or try relocating manually. I'm not good at programming but maybe the ems memory is interfering with the dir pointer in the memory register with the ems? Try with adding/removing physical RAM?

5476332566_7480a12517_t.jpgSB Dos Drivers

Reply 9 of 9, by keropi

User metadata
Rank l33t++
Rank
l33t++

I just realized I get the same behavior also by skipping startup file, I am going to set the variable in autoexec.bat and get over it 🤣

set dircmd=/o

maybe it is a win98se-DOS "feature" , because I completelly deleted win98se files and boot in a dos-only enviroment
thanks all for the time they spent answering here! 😊

🎵 🎧 PCMIDI MPU , OrpheusII , Action Rewind , Megacard and 🎶GoldLib soundcard website