home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / w / wcupdc11.zip / SCANFILE.BAT < prev    next >
DOS Batch File  |  1992-11-04  |  1KB  |  34 lines

  1. REM     Other checker etc. above this line.
  2.  
  3. REM     MUST be in the node home directory, DOOR.SYS located here on
  4. REM     shell to external program
  5. CD \WC30\WCWORK\NODE%WCNODEID%
  6.  
  7. REM     Check to see if file is already flagged as bad, if so skip
  8. IF EXIST SCANFILE.BAD GOTO SKIPWCUP
  9.  
  10. REM     Display WCUPDC.TXT to the caller.
  11. OUTCOMM.EXE C:\WC30\DISP\WCUPDC.TXT
  12.  
  13. REM     Now let's check the exec file dates in the upload!
  14. WCUPDC %1 C:\WC30\WCUPDC.CFG
  15.  
  16. REM     Check for log, display to caller if found.  If it does not exist
  17. REM     then either bad .ZIP or upload was NOT a .ZIP file.
  18. IF EXIST WCUPDC.LOG GOTO DISPLOG
  19. GOTO SKIPWCUP
  20.  
  21. REM     Display the WCUPDC.LOG file so the user can see results
  22. :DISPLOG
  23. OUTCOMM.EXE WCUPDC.LOG
  24.  
  25. REM     Now Copy+ the WCUPDC.LOG to a permanent file
  26. REM     This keeps a complete log of activity
  27. COPY C:\WC30\WCUPDC%WCNODEID%+WCUPDC.LOG C:\WC30\WCUPDC%WCNODEID%.LOG
  28. REM     This line and the following 2 lines may be deleted if you wish
  29. REM     since the file is overwritten if it exists on the next upload
  30. DEL WCUPDC.LOG
  31.  
  32. :SKIPWCUP
  33. REM MSGCAT, etc......
  34.