home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / ALF20WB.ZIP / ALF.ZIP / ALFSORT.BAT < prev    next >
Encoding:
DOS Batch File  |  1995-11-29  |  3.1 KB  |  87 lines

  1. @echo off
  2. rem
  3. rem  Leave this file `AS IS' if...
  4. rem
  5. rem    A) All files areas are OK to sort
  6. rem    B) You don't have HEADERS in your FILES.BBS files
  7. rem
  8. rem  Otherwise...
  9. rem
  10. rem  This batch file can be configured to prevent sorting in selected areas
  11. rem  where the order of the files listed is of importance.
  12. rem
  13. rem  It can also SAVE FILES.BBS HEADERS, and replace them after the file
  14. rem  descriptions have been sorted.
  15. rem
  16. rem  A) PREVENT SORTING
  17. rem
  18. rem  Enter directories, as below, that you DON'T want sorted (three lines each).
  19. rem
  20. rem  IMPORTANT!!: This is CASE SENSITIVE!  Use the SAME CASE as used in
  21. rem               FILEAREA.CTL to specify the area's "download area", the
  22. rem               same as appears on screen when an area is being sorted.
  23. rem
  24. rem
  25. rem   Examples:
  26. rem
  27. rem      if %1==C:\Max\File\Uncheck\ echo Skipped!>com%2
  28. rem      if %1==C:\Max\File\Uncheck\ echo Skipped!
  29. rem      if %1==C:\Max\File\Uncheck\ goto end
  30. rem
  31. rem      if %1==C:\max\File\NewUp\ echo Skipped!>com%2
  32. rem      if %1==C:\max\File\NewUp\ echo Skipped!
  33. rem      if %1==C:\max\File\NewUp\ goto end
  34. rem
  35. rem      if %1==c:\max\file\sysop\ echo Skipped!>com%2
  36. rem      if %1==c:\max\file\sysop\ echo Skipped!
  37. rem      if %1==c:\max\file\sysop\ goto end
  38. rem
  39. rem
  40. rem
  41. rem  B) SAVING FILES.BBS HEADERS FROM BEING SORTED
  42. rem
  43. rem  ********************************************************************
  44.  
  45. echo Running Qsort ...>com%2
  46. QSORT %1files.bbs /M1050 /L
  47.  
  48. rem  ********************************************************************
  49. rem
  50. rem  To use the HEADER SAVER during SORT, comment out the two lines above, and
  51. rem  uncomment the ten lines below.
  52. rem
  53. rem  ********************************************************************
  54.  
  55. rem echo Saving lines containing `` (ASCII 3 decimal) ...
  56. rem echo Saving lines containing `` (ASCII 3 decimal) ...>com%2
  57. rem type %1files.bbs | find "" >fbbshead
  58. rem type %1files.bbs | find /V "" >fbbstxt
  59. rem echo Running Qsort ...>com%2
  60. rem QSORT fbbstxt /M1050 /L
  61. rem echo Replacing lines ...
  62. rem echo Replacing lines ...>com%2
  63. rem copy fbbshead+fbbstxt %1files.bbs>nul
  64. rem del fbbshead
  65. rem del fbbstxt
  66.  
  67. rem  ********************************************************************
  68. rem
  69. rem   Each line of the Header (and only those lines which comprise
  70. rem   the header) MUST contain an ASCII 3 character () so that the
  71. rem   header can be saved during Sort and Acquire operations.
  72. rem
  73. rem   Using a text editor, edit the FILES.BBS file in each file area, and add
  74. rem   the character to EACH LINE OF THE HEADER by holding down the ALT key and
  75. rem   hitting 3 on the numeric keypad (ALT-3).
  76. rem
  77. rem  Example FILES.BBS:
  78. rem
  79. rem   ╒═══════════════════════════════════════════════════════════════════════╕
  80. rem   │  AREA 8: PHOTOGRAPHY FILES                                            │
  81. rem   ╘═══════════════════════════════════════════════════════════════════════╛
  82. rem
  83. rem  Cameras.zip  [   0] Info on cameras
  84. rem  Film.txt     [   0] Info on film.
  85. rem
  86. :end
  87.