A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

why doesn't the "dir /on" command work properly?



 
 
Thread Tools Display Modes
  #1  
Old September 26th 11, 06:42 AM posted to microsoft.public.win98.gen_discussion
Robert Macy[_2_]
external usenet poster
 
Posts: 92
Default why doesn't the "dir /on" command work properly?

the dir /on command does NOT list the files in alphabetical order!

I tried on some folders, no problem. On the folder with 1548 files the
listing will not come up properly in alphabetical order.

Anyway to fix this?

At least in works in 'sections', but still wanted the whole list in
one pass.

  #4  
Old September 26th 11, 05:35 PM posted to microsoft.public.win98.gen_discussion
Robert Macy[_2_]
external usenet poster
 
Posts: 92
Default why doesn't the "dir /on" command work properly?

On Sep 26, 4:53*am, Lostgallifreyan wrote:
Robert Macy wrote in news:2604668c-b9fa-4bdf-bb7b-
:

the dir /on command does NOT list the files in alphabetical order!


I tried on some folders, no problem. On the folder with 1548 files the
listing will not come up properly in alphabetical order.


Anyway to fix this?


At least in works in 'sections', but still wanted the whole list in
one pass.


Instead of redirecting to file to sort that, you can also try SORT.EXE, which
sorts in columns, but it might be pointless, if there are too many files, you
need to redirect to file to see everythign easily, and trying to do that in
combination with piping (dir... | sort...) is a headache in the making and
maybe not possible (I couldn't do it). SORT might be just as limited as DIR
in the number of lines it can cope with, too.

DOS commands often have limits when handling large or complex tasks, so I
always use them in a basic way to capture all the data I want, then process
that afterwards (TextPad or Lua scripting being more than enough to handle
all stuff I need).


Thank you didn't think of using external editor to sort.

I have sort.exe [DOS program] and a batch field that saves the
original called sortbak.exe.

I'll try them and see what happens.
  #5  
Old September 26th 11, 05:46 PM posted to microsoft.public.win98.gen_discussion
Robert Macy[_2_]
external usenet poster
 
Posts: 92
Default why doesn't the "dir /on" command work properly?

On Sep 26, 4:53*am, Lostgallifreyan wrote:
Robert Macy wrote in news:2604668c-b9fa-4bdf-bb7b-
:

the dir /on command does NOT list the files in alphabetical order!


I tried on some folders, no problem. On the folder with 1548 files the
listing will not come up properly in alphabetical order.


Anyway to fix this?


At least in works in 'sections', but still wanted the whole list in
one pass.


Instead of redirecting to file to sort that, you can also try SORT.EXE, which
sorts in columns, but it might be pointless, if there are too many files, you
need to redirect to file to see everythign easily, and trying to do that in
combination with piping (dir... | sort...) is a headache in the making and
maybe not possible (I couldn't do it). SORT might be just as limited as DIR
in the number of lines it can cope with, too.

DOS commands often have limits when handling large or complex tasks, so I
always use them in a basic way to capture all the data I want, then process
that afterwards (TextPad or Lua scripting being more than enough to handle
all stuff I need).


that should have been batch file: sortbak.bat, not sorbak.exe !!

just tried it using
sort /+45 directry.txt $nudir.txt

and it worked great !!!

Thanks for jogging my memory. aren't those old DOS programs great!

Hard to believe how powerful that 20kB program is.
Written today for Windows 7, bet it would be at least 10MB
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
For command line and batch file experts, and "no DOS sound" update. chuckcar Improving Performance 0 January 22nd 09 12:30 AM
For command line and batch file experts, and "no DOS sound" update. §ñühw¤£f Improving Performance 1 January 21st 09 06:44 PM
For command line and batch file experts, and "no DOS sound" update. thanatoid Improving Performance 0 January 21st 09 06:42 PM
Where from to find command-lines "INPUT.EXE" & "SLEEP.EXE" ? bestofcomputer General 14 January 26th 06 07:30 PM
What result on the command-line of the command "ver" under Win ME bestofcomputer General 2 January 7th 06 10:25 AM


All times are GMT +1. The time now is 02:58 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.