Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#146175 - 27/02/2003 16:38 Directory Sort utility
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Does anybody remember the old Norton Utilites programs back in the 8-bit and 16-bit days?

The one I miss the most is the old DS utility where you could, at DOS, type in "DS -nedt" and it would instantly sort the file names in the current directory by (in this example) name, extension, date, and time.

Apprently Bill Gates doesn't believe that anybody uses a DOS window for file management anymore, because the filenames appear apparently in whatever order they were created.

Is there a utility like the old Norton DS that will work in a 32-bit Windows DOS shell? (Win98 or Win2K)

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#146176 - 27/02/2003 16:40 Re: Directory Sort utility [Re: tanstaafl.]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
Um, built it. "dir /O:NEDS"

Edit: Do a "help dir" for more switches. Amazing. I didn't know all that was available...


Edited by pgrzelak (27/02/2003 16:45)
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#146177 - 27/02/2003 16:49 Re: Directory Sort utility [Re: pgrzelak]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31602
Loc: Seattle, WA
The Norton program to which Doug is referring would actually set the order of the files as they appeared in the directory table so that you wouldn't have to add those parameters to every DIR command.
_________________________
Tony Fabris

Top
#146178 - 27/02/2003 17:04 Re: Directory Sort utility [Re: pgrzelak]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Do a "help dir" for more switches. Amazing. I didn't know all that was available...

I think the "Help <cmdname>" function disappeared from Windows about the time Win98 came out. Last time I was able to use that was either in Win 3.1 or Win 95. Doesn't work for me anymore.

But I do have a booklet I prepared "WINDOWS 95 COMMAND LINE FUNCTIONS" by doing what you suggested: "Help cmdname >> outfile" for each command, then prettied up the outfile with a word processor, printed it up and stapled it together. Been using it for at least 5 years now.

But wait a minute -- my booklet says: "Switches may be preset in the DIRCMD environment variable. Override preset switches by prefixing any switch with a hyphen."

What does this mean? How would I preset my switches in the DIRCMD environment variable?

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#146179 - 27/02/2003 17:15 Re: Directory Sort utility [Re: tanstaafl.]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
In general:
set dircmd=/od/p
but you'll need to have it set for every shell, so in Win2k, you'd [Control Panel -> System -> Advanced -> Environment Variables] and set it in there (no need for the `set' command here); there's one space for everyone and one for just you. In 98, I think you'll have to edit your autoexec.bat to contain the set command above.
_________________________
Bitt Faulk

Top
#146180 - 27/02/2003 18:50 Re: Directory Sort utility [Re: wfaulk]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
set dircmd=/od/p

Or, in my case, set dircmd=/o:ned /p

I'll find out if it works the next time I reboot.

Thank you!

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#146181 - 27/02/2003 21:09 Re: Directory Sort utility [Re: wfaulk]
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
Correct and correct. Although the above program did it in such a way as to be the same no matter who you gave the disk to. (assuming they didn't have their own sort params set) It simply modified the FAT.


Edited by lectric (27/02/2003 21:09)

Top
#146182 - 28/02/2003 03:38 Re: Directory Sort utility [Re: tanstaafl.]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
I use /O:GN, but it works fine for me.
_________________________
-- roger

Top
#146183 - 28/02/2003 06:26 Re: Directory Sort utility [Re: tanstaafl.]
ashmoore
addict

Registered: 24/08/1999
Posts: 564
Loc: TX
hmm, "DOS Window"........ I think I remember that
_________________________
========================== the chewtoy for the dog of Life

Top
#146184 - 28/02/2003 07:19 Re: Directory Sort utility [Re: tanstaafl.]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
'help dir' works in XP..

Top
#146185 - 28/02/2003 11:14 Re: Directory Sort utility [Re: Yang]
larry818
old hand

Registered: 01/10/2002
Posts: 1039
Loc: Fullerton, Calif.
'help dir' also worked in Win 2000.

I use doskey to sort the dir: "doskey dir = dir /o $*" which I also use to add some unix commands like "ls" since I don't always remember what I'm doing.

Top