home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / bkck22.exe / lha / BKCKDEMO.BAT < prev    next >
DOS Batch File  |  1990-11-24  |  2KB  |  77 lines

  1. echo off
  2. cls
  3. if "%1" == "" goto syntax
  4.  
  5. echo ---------------------------------------------------------------------
  6. echo This is a demo batch file to show you how BKCK will return an
  7. echo ERRORLEVEL to indicate what percentage of your files need backing up.
  8. echo ---------------------------------------------------------------------
  9. if not exist bkck.exe goto not_there
  10. pause
  11. bkck %1:\ /tt
  12. if errorlevel 255 goto problem
  13.  
  14. echo --------------------------------------------------------------------------
  15. if errorlevel 75 goto 75
  16. if errorlevel 50 goto 50
  17. if errorlevel 25 goto 25
  18. if errorlevel 10 goto 10
  19. if errorlevel 5 goto 5
  20. if errorlevel 1 goto 1
  21.  
  22. echo Hmmmm.... looks like NONE of your data needs to be backed up!
  23. echo Good work!!
  24. goto end
  25.  
  26. :75
  27. echo Somewhere between 75%% and 100%% of your disk needs backing up.  Better
  28. echo crank up the old backup program and get to work!
  29. goto end
  30.  
  31. :50
  32. echo Somewhere between 50%% and 74%% of your disk needs backing up.  That's not
  33. echo bad, but you better think about doing a full backup!
  34. goto end
  35.  
  36. :25
  37. echo Somewhere between 25%% and 49%% of your disk needs backing up.  I've
  38. echo seen worse, but don't be like most people and let it go forever!
  39. goto end
  40.  
  41. :10
  42. echo Somewhere between 10%% and 24%% of your disk needs backing up.  Pretty
  43. echo low amount, but can you put a price on YOUR data?
  44. goto end
  45.  
  46. :5
  47. echo Somewhere between 5%% and 9%% of your disk needs backing up.  You must
  48. echo keep pretty good backups!
  49. goto end
  50.  
  51. :1
  52. echo Looks like 1%% of your disk needs backing up.  GOOD WORK!  Run this
  53. echo program in about a couple more days, and see what it tells you then!
  54. goto end
  55.  
  56. :problem
  57. echo --------------------------------------------------------------------------
  58. echo There was some kind of problem encountered while running the program!
  59. goto end
  60.  
  61. :syntax
  62. echo To try out this batch file, give the following command:
  63. echo .
  64. echo        BKCKDEMO d
  65. echo .
  66. echo Where "d" is the letter of a disk drive.
  67. echo .
  68. echo Example:     BKCK C   would check drive C:
  69. goto end
  70.  
  71.  
  72. :not_there
  73. echo *** I cannot find the BKCK.EXE program file! ***
  74. goto end
  75.  
  76. :end
  77.