home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 09 / chkdskb.bat < prev    next >
DOS Batch File  |  1991-08-27  |  425b  |  15 lines

  1. @ECHO OFF
  2. REM You *MUST* rename CHKDSK.EXE to XCHKDSKX.EXE and put this
  3. REM batch file on your PATH before you use it.
  4. IF EXIST INWINDOW.$$$ DEL INWINDOW.$$$
  5. QBASIC /RUN INWIN.BAS
  6. IF EXIST INWINDOW.$$$ GOTO YesWindow
  7. ECHO You're not in Windows, so CHKDSK is fine.
  8. XCHKDSKX
  9. GOTO End
  10. :YesWindow
  11. DEL INWINDOW.$$$
  12. ECHO Sorry, it's not safe to run CHKDSK.EXE under Windows.
  13. ECHO Exit Windows and try it again.
  14. :End
  15.