home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem Leave this file `AS IS' if...
- rem
- rem A) All files areas are OK to sort
- rem B) You don't have HEADERS in your FILES.BBS files
- rem
- rem Otherwise...
- rem
- rem This batch file can be configured to prevent sorting in selected areas
- rem where the order of the files listed is of importance.
- rem
- rem It can also SAVE FILES.BBS HEADERS, and replace them after the file
- rem descriptions have been sorted.
- rem
- rem A) PREVENT SORTING
- rem
- rem Enter directories, as below, that you DON'T want sorted (three lines each).
- rem
- rem IMPORTANT!!: This is CASE SENSITIVE! Use the SAME CASE as used in
- rem FILEAREA.CTL to specify the area's "download area", the
- rem same as appears on screen when an area is being sorted.
- rem
- rem
- rem Examples:
- rem
- rem if %1==C:\Max\File\Uncheck\ echo Skipped!>com%2
- rem if %1==C:\Max\File\Uncheck\ echo Skipped!
- rem if %1==C:\Max\File\Uncheck\ goto end
- rem
- rem if %1==C:\max\File\NewUp\ echo Skipped!>com%2
- rem if %1==C:\max\File\NewUp\ echo Skipped!
- rem if %1==C:\max\File\NewUp\ goto end
- rem
- rem if %1==c:\max\file\sysop\ echo Skipped!>com%2
- rem if %1==c:\max\file\sysop\ echo Skipped!
- rem if %1==c:\max\file\sysop\ goto end
- rem
- rem
- rem
- rem B) SAVING FILES.BBS HEADERS FROM BEING SORTED
- rem
- rem ********************************************************************
-
- echo Running Qsort ...>com%2
- QSORT %1files.bbs /M1050 /L
-
- rem ********************************************************************
- rem
- rem To use the HEADER SAVER during SORT, comment out the two lines above, and
- rem uncomment the ten lines below.
- rem
- rem ********************************************************************
-
- rem echo Saving lines containing `` (ASCII 3 decimal) ...
- rem echo Saving lines containing `` (ASCII 3 decimal) ...>com%2
- rem type %1files.bbs | find "" >fbbshead
- rem type %1files.bbs | find /V "" >fbbstxt
- rem echo Running Qsort ...>com%2
- rem QSORT fbbstxt /M1050 /L
- rem echo Replacing lines ...
- rem echo Replacing lines ...>com%2
- rem copy fbbshead+fbbstxt %1files.bbs>nul
- rem del fbbshead
- rem del fbbstxt
-
- rem ********************************************************************
- rem
- rem Each line of the Header (and only those lines which comprise
- rem the header) MUST contain an ASCII 3 character () so that the
- rem header can be saved during Sort and Acquire operations.
- rem
- rem Using a text editor, edit the FILES.BBS file in each file area, and add
- rem the character to EACH LINE OF THE HEADER by holding down the ALT key and
- rem hitting 3 on the numeric keypad (ALT-3).
- rem
- rem Example FILES.BBS:
- rem
- rem ╒═══════════════════════════════════════════════════════════════════════╕
- rem │ AREA 8: PHOTOGRAPHY FILES │
- rem ╘═══════════════════════════════════════════════════════════════════════╛
- rem
- rem Cameras.zip [ 0] Info on cameras
- rem Film.txt [ 0] Info on film.
- rem
- :end
-