- Directory sort utility for OS/2 ?
- Posted by NumberOne29@Yahoo.com on November 28th, 2003
Hi all,
Is there a command line, "directory sort" utility for OS/2?
I'm looking for a program similar to Norton Utilities' old
"DS.EXE" program for DOS (sorts and re-writes sorted directories
to disk).
Thanks.
- Posted by Brad BARCLAY on November 28th, 2003
NumberOne29@Yahoo.com wrote:
For what filesystem? Note that HPFS and JFS are automatically sorted
in alpha-order -- you can't change it directly (although you can use
switches to the "dir" command to change the order they're displayed in
when you do a "dir").
HTH!
Brad BARCLAY
--
=-=-=-=-=-=-=-=-=
From the OS/2 WARP v4.5 Desktop of Brad BARCLAY.
The jSyncManager Project: http://www.jsyncmanager.org
- Posted by William L. Hartzell on November 28th, 2003
Sir:
NumberOne29@Yahoo.com wrote:
dir command from the command itself. In addition, the wps will sort the
listing of the folder in all sort of ways. Also, there are numerous
command line and vio/pm applications that will do this for you. Look at
Laresn Commander, which is a good clone of Norton Utilities, for
example. <http://home.online.no/~leifel/index.html> or BMTmicro.com
--
Bill
Thanks a Million!
- Posted by Lars Erdmann on November 28th, 2003
Hi,
dir /o
various sort criteria)
Lars
<NumberOne29@Yahoo.com> schrieb im Newsbeitrag
news:u0Ixb.18639$Eq1.1843556@news20.bellglobal.com ...
- Posted by Allodoxaphobia on November 28th, 2003
On Fri, 28 Nov 2003 13:24:42 GMT, NumberOne29@Yahoo.com hath writ:
???? [C:\]dir /?
[C:\]help dir --- and click on the "/O" link
Or, are you trying to manage the location of file entries in a
directory?
What filesystem are you concerned with?
Sure, it sometimes made sense in DOS with FAT and FAT-12 to order
the filenames according to some perceived sequence preference -- \
usually by most-often-opened.
But, most "modern" filesystems have moved beyond that.
Jonesy
--
| Marvin L Jones | jonz | W3DHJ | OS/2
| Gunnison, Colorado | @ | Jonesy | linux __
| 7,703' -- 2,345m | config.com | DM68mn SK
- Posted by James J. Weinkam on November 28th, 2003
NumberOne29@Yahoo.com wrote:
command. For example, I have
SET dircmd=/a/p/ogn/l
in my config.sys file. This causes all directory listings to: show system and
hidden files (/a), pause a the end of each page (/p), display directories
before files and display the entries in ascending order by name (/ogn), and
list everything in lower case (/l).
As to writing out a sorted directory to the disk, that depends on what file
system you are using.
For HPFS the directory structure is a B-tree (or some variant thereof) and is
inherently ordered and can't be tampered with. That's why changing code pages
can wreak such havoc.
For FAT drives, you can always boot under DOS and use a DOS utility if having
the directory in order on disk means that much to you.
- Posted by NumberOne29@Yahoo.com on November 28th, 2003
That's exactly what I want to do, on a FAT32 partition that I
access from OS/2.
I left the extended attributes "off" on FAT32.IFS, so whatever sort order
that I select from WPS doesn't "stick". Files will re-appear in the order
they were written to the disk.
I want on occasion to re-order the directory entries in a permanent fashion,
without having to turn on the EAs.
- Posted by William L. Hartzell on November 29th, 2003
Sir:
NumberOne29@Yahoo.com wrote:
the drive in the order that you wish them to be. EAs have nothing to do
with this even on HPFS or FAT.
--
Bill
Thanks a Million!
- Posted by Rich Walsh on November 29th, 2003
On Sat, 29 Nov 2003 01:12:34 UTC, "William L. Hartzell" <wlhartzell@comcast.net>
wrote:
Reread what the OP needs: to have the *WPS* display files in a selected
order. For this he certainly needs the .CLASSINFO EA to store this
preference. OTOH, if his global default sort preference were set to
something reasonable like "Real name", and "Always maintain sort order"
were checked, then none of this would be necessary. (An entry in
config.sys such as "SET DIRCMD=/A/O/P/N/V" would provide similar results
at the commandline.)
--
== == almost usable email address: DragText AT E-vertise.Com == ==
__________________________________________________ _________________
| DragText v3.8
Rich Walsh | A Distinctly Different Desktop Enhancement
Ft Myers, FL | http://e-vertise.com/dragtext/
__________________________________________________ _________________
- Posted by Al Savage on November 29th, 2003
On Sat, 29 Nov 2003 00:11:59 UTC, NumberOne29@Yahoo.com wrote:
Perhaps you could run a defrag util from the OS for which you are using
FAT32. I imagine that that would be safest.
--
Regards,
Al S.
- Posted by William L. Hartzell on November 29th, 2003
Sir:
Rich Walsh wrote:
anything that the WPS does is not saved. Besides using the WPS does not
write the order to the disk, which is his original requirement.
to have the *WPS* display files in a selected
previously discussed, but does not meet his requirements. Since FAT has
a linked list directory structure, I believe that my last suggestion is
his only option to have the entries on the disk in the order that he wishes.
--
Bill
Thanks a Million!
- Posted by James J. Weinkam on November 29th, 2003
William L. Hartzell wrote:
I believe ea's are used to remember porperties such as "always maintain sort
order" and what the order is.
- Posted by James J. Weinkam on November 29th, 2003
Rich Walsh wrote:
Where exactly are the global default sort preferences set? I have always had
the "Always maintain sort order" box checked in desktop properties and I still
have to check it manually in the folder properties notebook every time I open
a new folder in the WPS for the first time.
Thanks in advance for your help.
- Posted by William L. Hartzell on November 29th, 2003
Sir:
James J. Weinkam wrote:
system, not what shows in the WPS. Again EAs have nothing to do with
the order of files on the hard drive.
--
Bill
Thanks a Million!
- Posted by Lars Erdmann on November 29th, 2003
Hi,
if you use XWP, you can make your sort oder stick. It does not mean that
they are reordered physically on disk, it just means that they will be
resorted to the order you chose every time you open a folder.
For the commandline, you know to use dir /O
Lars
<NumberOne29@Yahoo.com> schrieb im Newsbeitrag
news:jvRxb.22861$dt2.1711598@news20.bellglobal.com ...
- Posted by The Real OS/2 Guy on November 29th, 2003
On Sat, 29 Nov 2003 03:46:20 UTC, "James J. Weinkam" <jjw@cs.sfu.ca>
wrote:
Settings WPObject.
I have always had
The WPS is an object oriented thing. So an object inherits its
settings from its class (create new) or the object its created from
(copy, create from teplate). So each object owns its personal
settings.
When the object already exist it will always use the default it got
during create. When there is no setup string set it uses the hardcoded
default instead. eWPS gives you for some settings the possibility to
change them globally - but that would work only until you've NOT
changed the setting for an object yourself. Not all classes the WPS
knows knows about all settings, many of them are specific to a single
class or class tree.
Anyway you can use REXX to change many (not all) settings of one or
all objects.
--
Tschau/Bye
Herbert
To buy eComStation 1.1 in germany visit http://www.pc-rosenau.de
- Posted by Rich Walsh on November 29th, 2003
On Sat, 29 Nov 2003 03:12:34 UTC, "William L. Hartzell" <wlhartzell@comcast.net>
wrote:
The original requirement was that files always be listed by the WPS in a
particular (presumably sorted) order. The idea of rewriting the directories
is _derived_ from this requirement. It is one possible solution but not
necessarily the best - largely because there doesn't appear to be any util
to do this for FAT32. (And yes, we all know that the WPS doesn't control
the physical ordering of files on a disk.)
You're just piling up the inaccuracies here, Bill. Perhaps FAT32 uses a
linked-list, but plain-ole FAT uses a simple array for its directories.
If your last suggestion was to write the files to another location then
copy them back in the preferred order, it certainly is a viable (though
awfully clumsy) solution.
--
== == almost usable email address: DragText AT E-vertise.Com == ==
__________________________________________________ _________________
| DragText v3.8
Rich Walsh | A Distinctly Different Desktop Enhancement
Ft Myers, FL | http://e-vertise.com/dragtext/
__________________________________________________ _________________
- Posted by Rich Walsh on November 29th, 2003
On Sat, 29 Nov 2003 03:46:20 UTC, "James J. Weinkam" <jjw@cs.sfu.ca> wrote:
Someone else may have mentioned this already, but in your System Setup folder
is an object ("System"?) with a 'Sort' tab where you can set these globally.
(I'm using eWP, so whatever object I'm referring to has been split into
"Screen" & "Workplace Shell". In this setup, the option is in the latter.)
--
== == almost usable email address: DragText AT E-vertise.Com == ==
__________________________________________________ _________________
| DragText v3.8
Rich Walsh | A Distinctly Different Desktop Enhancement
Ft Myers, FL | http://e-vertise.com/dragtext/
__________________________________________________ _________________
- Posted by William L. Hartzell on November 29th, 2003
Sir:
Rich Walsh wrote:
requirement department.
will write them out in sorted order. Thus, using xcopy to copy off the
files and then write them back will put them on the drive in sorted
order. (Observation from doing backups) It would be a simple matter to
pull a directory of the fat32 drive and to sort it and give the list to
pkzip to create a backup. From which he can restore after a format of
the drive to get them into the order he wishes. (Not a linked list with
those pointers to the next/previous file? I must be confusing something
else here.)
--
Bill
Thanks a Million!
- Posted by James J. Weinkam on November 29th, 2003
The Real OS/2 Guy wrote:
already know most of what you have said, but Rick Walsh implied that there is
a settable default somewhere that, once set, would cause all folders
subsequently created to inherit this default setting and have any objects
within them appear in the specified order whenever such a folder was opened.
I was asking where this global default setting is located. I've always wished
there was such a thing and I have tried various things that allegedly do it,
but so far my search has been in vain. I realize that pre exisiting folders
would have to be dealt with individually.
What do you mean by eWPS?