🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by kudut Thu, 31 Dec 1992 03:41
SEARCH.BAT - BBS file listings searcher.
#3909
Author: kudut
Date: Thu, 31 Dec 1992 03:41
68 lines
3174 bytes
@echo off
REM MS-DOS ignores all lines with REM in front of them.  Please keep them
REM in this batch file, though, as you or someone else might need to
REM reference to this in the future.  Kenneth Udut, on 12/28/1992
REM
REM Necessary files: GREP or similar file that searches through text files.
REM The -i parameter means to ignore case (upper or lower).
REM MS-DOS's "FIND" command will work for files under 64K in length.
REM
REM LIST.  You can use TYPE D:\SEARCH\RESULTS\%1 | MORE  if you wish or
REM some other text file viewing program, even Wordperfect :-)
REM

REM checks if user typed in anything.  If not, go to JAIL.
if "%1" == "" GOTO JAIL

REM Glory lines, as well as useful info about what the user is doing.
echo _________________________________________________________________________
echo.
echo Simple ASCII Information Extractor Version 1.32, Kenneth Udut  12/29/1992
echo.
ECHO You are searching through all of the text files in D:\SEARCH for "%1".
echo The results of this search will be placed in D:\SEARCH\RESULTS\%1.
echo _________________________________________________________________________
echo.
echo Searching for "%1" in D:\SEARCH\*.* ...  Please be patient.
echo.

REM Places Date and Time plus a blank line in %1.
echo. | more | date | find "Cur" > D:\SEARCH\RESULTS\%1
echo. | more | time | find "Cur" >> D:\SEARCH\RESULTS\%1
echo. >> D:\SEARCH\RESULTS\%1

REM You can see what's going on with ECHO ON.
REM GREP is a program that searches through text files.  The program FIND,
REM which comes with MS-DOS, works for files under 64K in length.  It is
REM worth your while to search for a program called GREP or with the word
REM GREP in its name, or just any kind of command-line text search program.
REM BEEP is a program I have that beeps when you type it.  You can remove it.
REM LIST is the program that lists the results of the file.  You can use the
REM line TYPE D:\SEARCH\RESULTS\%1 | MORE if you wish.
@echo on
GREP -i "%1" D:\SEARCH\*.* >> D:\SEARCH\RESULTS\%1
BEEP
LIST D:\SEARCH\RESULTS\%1
@echo off
GOTO END


REM In case the user didn't type it a file name, the batch file skips to here.

:JAIL
@echo off
echo Syntax: SEARCH whatyouwant
echo.
echo You may need to customize SEARCH.BAT for your own use.  Please contact
echo Kenneth Udut at (908) 241-6246, on The Juice Bar BBS (908) 298-0764,
echo or via the Internet at kudut@hamp.hampshire.edu if you need help.
echo.
echo Best Bet of all:  Contact your local computer guru.  Every place has at
echo least one.  :)                                                    --Ken
echo.
echo Finished!                                      CopyMight (c) 12/28/1992
echo.
beep
beep

:END
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads