home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 09 / chkdsk.bat < prev    next >
DOS Batch File  |  1991-08-27  |  345b  |  13 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. INWIN
  5. IF ERRORLEVEL 1 GOTO YesWindow
  6. ECHO You're not in Windows, so CHKDSK is fine.
  7. XCHKDSKX
  8. GOTO End
  9. :YesWindow
  10. ECHO Sorry, it's not safe to run CHKDSK.EXE under Windows.
  11. ECHO Exit Windows and try it again.
  12. :End
  13.