Do not run chkdsk with options from within windows, or
when you have shelled to dos from windows. It can trash
open files. This is a temporary fix until Microsoft fixes
either Windows 3.x or chkdsk.
1) Rename chkdsk.exe to chkdsk!.exe
2) Place the files chkdsk.bat and iswin.com in your
3) Now if you try chkdsk /f with windows loaded, you will
get an error message, and will be returned to Windows
(or the dos shell you got to from within Windows).
Files included in this zip (ckdk4win.zip):
iswin.com The small .com file that checks to see if
Windows is running. This file can be used in
other batch files to protect against other
DOS commands that may be dangerous to the
health of your computer while Windows is
iswin.deb The debug script used to create iswin.com. To
do it yourself, type debug
test.bat A test batch file to test iswin.com before you
iswin.doc This file
This material appeared in InfoWorld v13n26 and v13n27,
July 1 and 8, 1991. It appeared in the "Window Manager"
column, by Brian Livingston. See these articles for a list
of the errorlevels returned by iswin. 0 means Windows is not
running, anything greater means Windows is running.
Sent to you by Larry McGoldrick, SysOp
The Real Estate Board
July 18, 1991