home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
LU2MAX35.ZIP
/
LUL2SORT.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-05-13
|
2KB
|
61 lines
@echo off
echo.
echo This batch file can be configured to save files.bbs headers from
echo being sorted along with the file names, and add them again once
echo sorting is completed. You can also, as a safety measure, specify
echo areas that you don't ever want sorted.
echo.
echo As supplied, LUL2SORT simply sorts the file.bbs file.
echo.
pause
rem
rem Enter dirs below that you DON'T want sorted (four lines each),
rem and uncomment the lines.
rem Important: This is CASE SENSITIVE.
rem Use the same case as the "download area" in filearea.ctl
rem
rem Example:
rem
rem if %1==C:\max\File\NewUp\ echo You can't sort %1files.bbs!
rem if %1==C:\max\File\NewUp\ echo.
rem if %1==C:\max\File\NewUp\ pause
rem if %1==C:\max\File\NewUp\ exit
rem
rem
echo SORTING: %1FILES.BBS
echo.
echo Please wait...
echo.
rem
rem Using the HEADER SAVER during SORT:
rem
rem Headers must NOT contain "."
rem Each file name or description MUST contain "."
rem
rem Example files.bbs:
rem
rem ╒═══════════════════════════════════════════════════════════════════════╕
rem │ AREA 8: PHOTOGRAPHY FILES │
rem ╘═══════════════════════════════════════════════════════════════════════╛
rem
rem Cameras.zip [ 0] Info on cameras <--- This one would be fine
rem Film [ 0] Info on film. <--- This one would be fine
rem Jots [ 0] My capture file <--- You'd lose this listing
rem
rem Uncomment these six lines to use the header saver during SORT.
rem
rem find /v "." <%1files.bbs>head.$$$
rem find "." <%1files.bbs>nohead.$$$
rem sort <nohead.$$$>files.$$$
rem copy head.$$$+files.$$$ %1files.bbs>nul
rem del head.$$$
rem del nohead.$$$
rem
rem Comment out these three lines to use the header saver during SORT.
rem
sort <%1files.bbs>files.$$$
copy files.$$$ %1files.bbs>nul
del files.$$$
rem
echo Done!