home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
SGROUP2.ZIP
/
SGROUP.TXT
< prev
Wrap
Text File
|
1991-01-08
|
2KB
|
39 lines
SGroup is a quick little program I threw together to alleviate my growing
frustration with the Desktop Manager. SGroup simply sorts all of the programs
in a particular group, passed by a command-line parameter. As a side effect,
the group is moved to the bottom of the list of groups. I don't plan to tackle
a group sorter, since I find this a small issue.
SGroup's usage is very simple - give it the name of the group as a command line
parameter. If the group is more than one word, quotes can be used to delimit
the name. For example:
sgroup "network stuff"
SGroup is case insensitive to the name of the group. While sorting, it makes
a group called "Temp" (this is the unsorted original group) to sort from. It
then copies the programs into the new group (with the original name) and
deletes the "Temp" group. Make sure there is no "Temp" group before running
SGroup - if you ^C it or it stops abnormally, there may be one lying around.
The code is small, but still somewhat hard to understand at first glance. I
didn't want to take the time to break everything up into as many functions as
it should have been, but this cut development time in half (my lunch hour).
Note: don't SGroup a group that is currently up on the screen in a window. It
seems to have some undefined side effects. I suspect the Desktop Manager is
having some problems with the frequency of changes I'm putting out in such a
short time.
If you find this program useful or otherwise have complaints/fixes, drop me a
note here at work:
Phoenix Control Systems, Inc.
3811 N. 34th Ave
Phoenix, Az 85017
Ph: (602) 278-8737
8Jan91, Mike Donnelly