home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1990 / 01 / checkcom.bat < prev    next >
DOS Batch File  |  1989-11-27  |  579b  |  28 lines

  1. CHECKCOM.BAT
  2.  
  3.  
  4. ECHO OFF
  5. DIR C:\COMMAND.COM | FIND "25307" > TEMP$$$1
  6. COPY TEMP$$$1 TEMP$$$2 > NUL
  7. IF EXIST TEMP$$$2 GOTO OK1
  8. ECHO COMMAND.COM is the wrong size. Time to worry.
  9. GOTO finish1
  10. :OK1
  11. DEL TEMP$$$2
  12. ECHO COMMAND.COM is the right size.  You can relax.
  13. :finish1
  14. DEL TEMP$$$1
  15. DIR C:\COMMAND.COM | FIND "3-17-87" > TEMP$$$1
  16. COPY TEMP$$$1 TEMP$$$2 > NUL
  17. IF EXIST TEMP$$$2 GOTO OK2
  18. ECHO COMMAND.COM's date has been changed.  Time to worry.
  19. GOTO finish2
  20. :OK2
  21. DEL TEMP$$$2
  22. ECHO COMMAND.COM has the right date.  You can relax.
  23. :finish2
  24. DEL TEMP$$$1
  25.  
  26.  
  27.  
  28.