home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / SGROUP2.ZIP / SGROUP.TXT < prev   
Text File  |  1991-01-08  |  2KB  |  39 lines

  1. SGroup is a quick little program I threw together to alleviate my growing
  2. frustration with the Desktop Manager.  SGroup simply sorts all of the programs
  3. in a particular group, passed by a command-line parameter.  As a side effect,
  4. the group is moved to the bottom of the list of groups.  I don't plan to tackle
  5. a group sorter, since I find this a small issue.
  6.  
  7. SGroup's usage is very simple - give it the name of the group as a command line
  8. parameter.  If the group is more than one word, quotes can be used to delimit
  9. the name.  For example:
  10.  
  11. sgroup "network stuff"
  12.  
  13. SGroup is case insensitive to the name of the group.  While sorting, it makes
  14. a group called "Temp" (this is the unsorted original group) to sort from.  It
  15. then copies the programs into the new group (with the original name) and
  16. deletes the "Temp" group.  Make sure there is no "Temp" group before running
  17. SGroup - if you ^C it or it stops abnormally, there may be one lying around.
  18.  
  19. The code is small, but still somewhat hard to understand at first glance.  I
  20. didn't want to take the time to break everything up into as many functions as
  21. it should have been, but this cut development time in half (my lunch hour).
  22.  
  23. Note: don't SGroup a group that is currently up on the screen in a window.  It
  24. seems to have some undefined side effects.  I suspect the Desktop Manager is
  25. having some problems with the frequency of changes I'm putting out in such a
  26. short time.
  27.  
  28. If you find this program useful or otherwise have complaints/fixes, drop me a
  29. note here at work:
  30.  
  31.     Phoenix Control Systems, Inc.
  32.     3811 N. 34th Ave
  33.     Phoenix, Az  85017
  34.     Ph: (602) 278-8737
  35.     
  36.  
  37. 8Jan91, Mike Donnelly
  38.  
  39.