home *** CD-ROM | disk | FTP | other *** search
- REM SCANFILE.BAT for WILDCAT! 3.0+ BBS System!
-
- REM NOTE! DELETE ALL COMMENTS AFTER THE ; !!!!!!
-
- CD\WC30\WCWORK\NODE%WCNODEID% ;Change to NODE Directory
- if exist scanfile.bad erase scanfile.bad ;ERASE Scanfile.bad if exists.
-
- B-CRC %1 ;Run B-CRC on Uploaded File.
-
- IF ERRORLEVEL 1 GOTO NOGOOD ;If FAILED GOTO NOGOOD Section
- D: ;Change Drives
- cd\new-B ;Change to B-BUILD Database DIR
- B-BUILD %1 ;Run B-BUILD to add file to database
- C: ;Go back to C Drive
- CD\WC30\WCWORK\NODE%WCNODEID% ;Change back to Node Directory
- GOTO GOOD ;GOTO GOOD Section and run CATSCAN
-
-
- :NOGOOD ;This is the NOGOOD Section for
- ;Failed Files
-
- COPY C:\wc30\all.ok c:\wc30\wcwork\node%WCNODEID%\scanfile.bad
- ;Above -Copy Dummy file ALL.OK to Scanfile.Bad to Fail
- ;Upload in Wildcat!
- GOTO FINALLY ;Go to Finally Section which exits batch file.
-
- :GOOD ;GOOD Section - File is OK so lets run CATSCAN
- CATSCAN %1
- IF ERRORLEVEL 1 COPY C:\wc30\all.ok c:\wc30\wcwork\node%WCNODEID%\scanfile.bad
-
- :FINALLY ;Section to EXIT out of this Batch file.
-
-