VOGONS

Common searches


First post, by clueless1

User metadata
Rank l33t
Rank
l33t

So I'm newly reacquainted with DOS retro gaming 😀 A lot of DOS commands are coming back to me after 20 years away from the OS, but a couple questions have come up for me:
1) is there a way to alphabetically sort the file/folder structure automatically with a "dir" command? I figured out "dir/og" to sort nicely but the extra few characters are getting annoying. I seem to remember back in the day that some 3rd party defrag program did this as party of its process? Norton maybe?
2) is there a way to force the optical drive to D: when you have multiple hard drive letters? For now, I blew away my extended partition and logical drives since I am not close to filling up C:. This made assigning D: to the optical drive easy. But at some point I will need to add an additional 2GB partition or two (using an 8.4GB Samsung).

Thanks!

The more I learn, the more I realize how much I don't know.
OPL3 FM vs. Roland MT-32 vs. General MIDI DOS Game Comparison
Let's benchmark our systems with cache disabled
DOS PCI Graphics Card Benchmarks

Reply 1 of 9, by Gamecollector

User metadata
Rank Oldbie
Rank
Oldbie

1) DIRCMD environment variable.
The command is "set DIRCMD=/og" for your example.
2) /L:<letter> command switch for MSCDEX. Others DOS cd drivers use the similar method but the switch may be different.
Unfortunately there is no way to move cd-drive before FDD or HDD in DOS.
And some game want cd-drive as D and not work with others letters.

Asus P4P800 SE/Pentium4 3.2E/2 Gb DDR400B,
Radeon HD3850 Agp (Sapphire), Catalyst 14.4 (XpProSp3).
Voodoo2 12 MB SLI, Win2k drivers 1.02.00 (XpProSp3).

Reply 2 of 9, by konc

User metadata
Rank l33t
Rank
l33t

And since Gamecollector excellently addressed your questions, let me cover the final bit about defrag: Both MS defrag and Norton's Speed Disk allow you to sort the files/directories. Norton's option explicitly says "sort files blah blah" AND "move directories to the beginning", while MS's version (DOS 6.22) has the options simplified: If you choose to sort, it will also move the directories to the beginning.

btw for those working on FAT32 with the "DOS" from Windows 98, FreeDos defrag also allows sorting

Reply 3 of 9, by clueless1

User metadata
Rank l33t
Rank
l33t
Gamecollector wrote:
1) DIRCMD environment variable. The command is "set DIRCMD=/og" for your example. 2) /L:<letter> command switch for MSCDEX. Othe […]
Show full quote

1) DIRCMD environment variable.
The command is "set DIRCMD=/og" for your example.
2) /L:<letter> command switch for MSCDEX. Others DOS cd drivers use the similar method but the switch may be different.
Unfortunately there is no way to move cd-drive before FDD or HDD in DOS.
And some game want cd-drive as D and not work with others letters.

Thanks, Gamecollector and konc, especially for the DIRCMD variable and background on Defrag/Speed Disk.

I was aware of the /L switch and was using it. However, here was the situation I faced: When installing DOS, I partitioned my hard drive into four drive letters. So my optical drive took drive G: and I could not force it to D: because the 2nd hard drive partition already had a lock on that drive letter. I did not know how to shift all the hard drive letters over by one to reserve D: for the optical.

Is Norton Speed Disk freely available from any reputable sources?

The more I learn, the more I realize how much I don't know.
OPL3 FM vs. Roland MT-32 vs. General MIDI DOS Game Comparison
Let's benchmark our systems with cache disabled
DOS PCI Graphics Card Benchmarks

Reply 4 of 9, by JayCeeBee64

User metadata
Rank Retired
Rank
Retired
clueless1 wrote:

Is Norton Speed Disk freely available from any reputable sources?

It isn't as far as I know. Symantec (like Microsoft, Adobe and others) keeps a tight grip on their IP.

You could go for "disreputable" sources, but then you're on your own.

Ooohh, the pain......

Reply 5 of 9, by clueless1

User metadata
Rank l33t
Rank
l33t

I'd forgotten that MS Defrag was licensed from Symantec. It does everything I was wanting, so no need for Norton Utils. 😀

Still not sure if it is possible to retain the optical drive as letter D: if I add a 2nd HDD partition. Anyone?

The more I learn, the more I realize how much I don't know.
OPL3 FM vs. Roland MT-32 vs. General MIDI DOS Game Comparison
Let's benchmark our systems with cache disabled
DOS PCI Graphics Card Benchmarks

Reply 6 of 9, by Gamecollector

User metadata
Rank Oldbie
Rank
Oldbie
clueless1 wrote:

Still not sure if it is possible to retain the optical drive as letter D: if I add a 2nd HDD partition. Anyone?

No.
Because DOS assigns HDD letters before config.sys processing.
There is the ASSIGN command but it only creates drive letters, not makes the original letter free.

Asus P4P800 SE/Pentium4 3.2E/2 Gb DDR400B,
Radeon HD3850 Agp (Sapphire), Catalyst 14.4 (XpProSp3).
Voodoo2 12 MB SLI, Win2k drivers 1.02.00 (XpProSp3).

Reply 7 of 9, by clueless1

User metadata
Rank l33t
Rank
l33t
Gamecollector wrote:
No. Because DOS assigns HDD letters before config.sys processing. There is the ASSIGN command but it only creates drive letters, […]
Show full quote
clueless1 wrote:

Still not sure if it is possible to retain the optical drive as letter D: if I add a 2nd HDD partition. Anyone?

No.
Because DOS assigns HDD letters before config.sys processing.
There is the ASSIGN command but it only creates drive letters, not makes the original letter free.

Thank you Gamecollector.

The more I learn, the more I realize how much I don't know.
OPL3 FM vs. Roland MT-32 vs. General MIDI DOS Game Comparison
Let's benchmark our systems with cache disabled
DOS PCI Graphics Card Benchmarks

Reply 8 of 9, by gerwin

User metadata
Rank l33t
Rank
l33t
clueless1 wrote:

1) is there a way to alphabetically sort the file/folder structure automatically with a "dir" command?

You can use a batch file (located in a folder that is in your PATH variable) to always call dir with the sorting options you like.

In addition one can use a dir replacement:
1) D by Feedingdragon
2) 🤣
3) NDIR
4) Access-D ... Nowhere to be found so I attached it here.

Attachments

  • Filename
    access.zip
    File size
    23.55 KiB
    Downloads
    56 downloads
    File license
    Fair use/fair dealing exception
Last edited by gerwin on 2015-12-30, 00:23. Edited 2 times in total.

--> ISA Soundcard Overview // Doom MBF 2.04 // SetMul

Reply 9 of 9, by clueless1

User metadata
Rank l33t
Rank
l33t

For me the solution was to run defrag with the file sort option. Then you don't have to mess with dir.

The more I learn, the more I realize how much I don't know.
OPL3 FM vs. Roland MT-32 vs. General MIDI DOS Game Comparison
Let's benchmark our systems with cache disabled
DOS PCI Graphics Card Benchmarks