home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwplascr.zip / XWPL0208.ZIP / release / bin / alwssort.cmd next >
OS/2 REXX Batch file  |  2000-01-04  |  1KB  |  36 lines

  1. /* ALWSSORT.CMD:
  2.  *
  3.  * Switches on "Always maintain sort order" for the
  4.  * current directory.
  5.  * You can take this file as an example for changing
  6.  * WPS folder settings. If you're not familiar with
  7.  * REXX, note the following:
  8.  * -- The first line of this file MUST be a comment
  9.  *    (as can be seen above). You may change it to
  10.  *    something else (if you don't like my name),
  11.  *    but you may not remove it. Otherwise OS/2 will
  12.  *    consider this file a plain batch file (as with
  13.  *    DOS), and produce errors only.
  14.  * -- Check the XFolder Online Reference for valid
  15.  *    folder setup strings. BE CAREFUL with them, or
  16.  *    you might mess up things big time. DO NOT try
  17.  *    out any actions on crucial OS/2 folders, such
  18.  *    as the desktop. Create a "test" folder instead.
  19.  *
  20.  *  (W) (C) 1998 Ulrich Möller. All rights reserved.
  21.  */
  22.  
  23. '@echo off'
  24. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  25. call SysLoadFuncs
  26. /* this loads the REXXUTIL functions into memory, one
  27.  * of which is the SysSetObjectData function below */
  28.  
  29. call SysSetObjectData directory(), 'ALWAYSSORT=YES;'
  30. /* directory() returns the current directory, which XFolder
  31.  * should have switched to upon starting this script;
  32.  * 'ALWAYSSORT=YES' is a folder setup string, as described
  33.  * in the Online Reference. If you wish to change several
  34.  * settings at once, separate them with semicola (";"). */
  35.  
  36.