Dec 052017
 
Fix For CHKDSK /F with Windows 3.x running. The /f can trash open files; this is a batch file workaround.
File CKDK4WIN.ZIP from The Programmer’s Corner in
Category Windows 3.X Files
Fix For CHKDSK /F with Windows 3.x running. The /f can trash open files; this is a batch file workaround.
File Name File Size Zip Size Zip Type
CHKDSK.BAT 215 142 deflated
ISWIN.COM 65 65 stored
ISWIN.DEB 347 171 deflated
ISWIN.DOC 1752 778 deflated
TEST.BAT 245 106 deflated

Download File CKDK4WIN.ZIP Here

Contents of the ISWIN.DOC file



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
c:\dos subdirectory.
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
running.
iswin.deb The debug script used to create iswin.com. To
do it yourself, type debug chkdsk.bat The replacement for chkdsk
test.bat A test batch file to test iswin.com before you
try chkdsk.bat
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
Burtonsville, Maryland
(301) 384-9302
July 18, 1991



 December 5, 2017  Add comments

Leave a Reply