Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I know this question has probably been asked *many* times on here, but i've used the search function and can't find any info on it so I thought i'd ask anyway!
I'm messing around with Windows 3.11 on PC emulators such as Bochs and Virtual PC. When installing Windows 3.11 on DOS 7.10 (Which I got from Wengier's page some time back) it works fine, but for example, when I exit Windows via program manager and it takes me back to the C:\ prompt, it says "Bad Command or File Name" - and no other executable files work either, until i restart the 'computer' (virtual machine) I also sometimes get "EMM386 has detected error #x" errors during Windows 3.11 starting up. Why should these things happen? I'm guessing it's got something to do with disk access or a memory setting, although I might be wrong.
Any help appreciated!
Alex

Tut my mistake, missed a bit! :
"...it works fine, but for example, when I exit Windows via program manager and it takes me back to the C:\ prompt, and when I type WIN, it says "Bad Command or File Name" - and no other executable files work either, until i restart the 'computer' (virtual machine) "

Hi Alex,
It's known that w3x has problems with DOS 7.
And running 'emulated' can only complicate things.
But for the immediate issue, exiting via progman and being unable to run WIN or other exec, after exiting type SET [enter] to see what the PATH is.
HTH
M2
If at first you don't succeed, you're about average.

Thanks for the reply,
Anyway I installed something on Windows and restarted it and it said the following - and this also shows the variables that have been SET:
: Missing/unable to load.
C:\WINDOWS>set
TMP=C:\TEMP
TEMP=C:\TEMP
COMSPEC=C:\COMMAND.COM
IEPPP=C:\MSIE50
PCTCP=C:\MSIE50\pctcp.shv
PROMPT=$P$G
DIRCMD=/4
BLASTER=A220 I5 D1
winbootdir=c:\windows PATH=C:\MSIE50;C:\WINDOWS;C:\DOS71;..;C:\DOS71\NORTON
CMDLINE=WIN
As you can see, Windows is in the path, so is there anything else I need to check?
Thanks for any help.Alex

Hi Alex,
Yes, I see that c:\windows is in the path.
Is this:
: Missing/unable to load.
The exact msg you get whentryong to run WIN?
Or simply 'bad command pr filename'?
do a:
dir c:\windows\win*.*
if no joy:
attrib /s c:\windows\win*.*
if still no joy:
attrib c:\win*.*
***
HTHM2
If at first you don't succeed, you're about average.

Ales,
oops
Last command should be:
attrib /s c:\win*.*
Should fond many. To narrow it down:attrib /s c:\win.*
M2
If at first you don't succeed, you're about average.

I've been using Virtual PC too, and Windows _for Workgroups_ 3.11 with MS-DOS 7.10 works great. In fact I've playing with MSDOS.SYS and made Windows to load just like win95 (not needing to put "win" at the bottom of my autoexec.bat), I played with System.ini and even got to work with LFNs using a modified version of Calmira (saddly it hangs when I rename/create a folder for the second time, don't know why, and some other bugs, I'm not very good on LFN programming, although I've added a Wallpaper selector in the desktop properties dialog and the ability of using personalized icons for folders) and I even use networking, and i prefer to use network folder sharing than VirtualPC's one (FSHARE.EXE) because vpc's folder sharing is TOO SLOW to be useable. As you see, everything runs perfectly.
Please post your autoexec.bat and config.sys to make it easier to help. I'll post mine for you to see

CONFIG.SYS
------
[COMMON]
DEVICE=C:\DOS\ECHO.SYS W/e/l/c/o/m/e /t/o MS-DOS 7.10...
DEVICE=C:\DOS\ECHO.SYS C/o/p/y/r/i/g/h/t M/i/c/r/o/s/o/f/t C/o/r/p. A/l/l /r/i/g/h/t/s /r/e/s/e/r/v/e/d.[MENU]
MENUITEM NORMAL,Plain MS-DOS - Everything enabled
MENUITEM NOPF,Plain MS-DOS - No EMS Page Frame
MENUITEM SAFEXMS, Safe MS-DOS - XMS Enabled
MENUITEM SAFEDOS, Safe MS-DOS - Everything Disabled
MENUITEM WINDOWS, Micorosft Windows for Workgroups 3.11[NORMAL]
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.exe FRAME=D000 I=B100-B7FF I=C600-C7FF I=CC00-CFFF I=E600-EFFF RAM
DEVICEHIGH /L:2 =C:\DOS\SETVER.exe
REM DEVICEHIGH=C:\DOS\POWER.exe
DEVICEHIGH /L:3=C:\DOS\VIDE-CDD.SYS /D:IDE-CD
DEVICEHIGH /L:1=C:\DOS\DISPLAY.SYS CON=(,,1)
COUNTRY=044,850,C:\DOS\COUNTRY.SYS
SHELL=C:\PROGRA~1\4DOS\4DOS.COM /P
DOS=HIGH,UMB,AUTO
FCBS=1,0
BUFFERS=11,0
LASTDRIVE=Z
STACKS=9,256[NOPF]
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.exe FRAME=NONE I=B100-B7FF I=C600-C7FF I=CC00-CFFF I=E600-EFFF RAM
DEVICEHIGH /L:4=C:\DOS\SETVER.exe
;DEVICEHIGH /L:4=C:\DOS\POWER.exe
DEVICEHIGH /L:4=C:\DOS\VIDE-CDD.SYS /D:IDE-CD
DEVICEHIGH /L:4=C:\DOS\DISPLAY.SYS CON=(,,1)
DEVICEHIGH /L:3=C:\PROGRA~1\SB16\DRV\CTSB16.SYS /UNIT=0 /WIN95 /BLASTER=A:220 I:5 D:1 H:5
DEVICEHIGH /L:4=C:\PROGRA~1\SB16\DRV\CTMMSYS.SYS
COUNTRY=044,850,C:\DOS\COUNTRY.SYS
SHELL=C:\PROGRA~1\4DOS\4DOS.COM /P
DOS=HIGH,UMB,AUTO
FCBS=1,0
BUFFERS=11,0
LASTDRIVE=I
STACKS=9,256[SAFEXMS]
DEVICE=C:\DOS\HIMEM.SYS[WINDOWS]
DOS=UMB
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.exe NOEMS
DEVICE=C:\DOS\SETVER.exe
DEVICE=C:\DOS\VIDE-CDD.SYS /D:IDE-CD
DEVICE=C:\DOS\DISPLAY.SYS CON=(,,1)
COUNTRY=044,850,C:\DOS\COUNTRY.SYS
SHELL=C:\PROGRA~1\4DOS\4DOS.COM /P
FCBS=1,0
BUFFERS=11,0
LASTDRIVE=I
STACKS=9,256
DEVICE=C:\WINDOWS\IFSHLP.SYS[SAFEDOS]
DOS=LOW,NOUMB,NOAUTO[COMMON]
FILES=40
SET PATH=C:\DOS;

AUTOEXEC.BAT
--
@ECHO OFF
CTTY NUL
IF "%CONFIG%"=="SAFEDOS" GOTO END
IF "%CONFIG%"=="SAFEXMS" GOTO END
--------
REM Environment setup
--------
SET TEMP=C:\Temp
SET TMP=C:\Temp
SET DIRCMD= /OGN /4
SET PATH=C:\DOS;C:\Progra~1\4dosC:\DOS\norton
SET PROMPT=$P$G
SET SOUND=C:\PROGRA~1\SB16
SET BLASTER=A220 I5 D1 H5 P330 T6
SET MIDI=SYNTH:1 MAP:E
SET TempScript=%temp%\calmira.tmp
BREAK ON
LFNFOR ON
--------
REM Common initialization
--------
ECHO - Setting keyboard repeat rate > CON
MODE CON RATE=32 DELAY=1
ECHO - Preparing and selecting codepage > CON
MODE CON CP PREPARE=((850)C:\DOS\EGA.CPI)
MODE CON CP SELECT=850
ECHO - Initializing keyboard layout > CON
LH /L:1 KEYB BR,,C:\DOS\KEYBOARD.SYS
::ECHO - Initializing command line recaller > CON
::LH /L:2 DOSKEY
ECHO - Initializing SoundBlaster 16 ISA
::C:\PROGRA~1\SB16\DIAGNOSE /S
C:\PROGRA~1\SB16\MIXERSET /P /Q
ECHO - Initializing CD-ROM support > CON
LH /L:1 C:\PROGRA~1\SHSUCDX\SHSUCDX /D:IDE-CD /~+
REM LH NLSFUNC
ECHO - Initializing Disk Cache > CON
LH /L:3 SMARTCDX 8192 8192
ECHO - Initializing Mouse Driver > CON
REM For compatiblity purpose:
LH /L:1 CTMOUSE
LH /L:1 CTMOUSE > NUL
ECHO - Initializing support for Long File Names > CON
LH /L:3 C:\PROGRA~1\DOSLFN\DOSLFN
ECHO - Initializing Virutal PC Folder Sharing
lh c:\cntx\fshare.exe
IF "%CONFIG%"=="NORMAL" GOTO DOS
IF "%CONFIG%"=="NOPF" GOTO DOS
IF "%CONFIG%"=="WINDOWS" GOTO WINDOWS
GOTO END
--------
REM MS-DOS Only Setup
--------
:DOS
ECHO - Initializing IDLE Commands to Processor > CON
c:\cntx\idle.com
ECHO - Initializing Task Killer > CON
LH KILLER
GOTO END
--------
REM Windows only setup
--------
:WINDOWS
SET PATH=C:\WINDOWS;%path%
ECHO - Initializing common file access > CON
REM LH SHARE /L:30
LH C:\DOS\SHARE.exe /l:500 /f:5100
ECHO - Initializing windows network
C:\WINDOWS\net start
REM Activate the following lines to be able of creating permanent swap files with Win3.11
REM ECHO - Initializing "Direct Disk Access" > CON
REM CALL LOCKDRV.BAT
GOTO END:END
CTTY CON
ECHO Now you are in MS-DOS 7.10 prompt. Type 'HELP' for help.
ECHO.

Now I remember something. When i first installed Win3.11 with MS-DOS 7.10 i had a problem like yours. Try to start windows from the root directory like this
?:\????\?????\>C:
C:\????>CD \
C:\>WIN
By starting from the root directory i had no more problems. But, if you _need_, for some obscure reason, to start windows somewhere else, try to enter "CD \" command after exiting windows. I'm not shure but i think it was what i used to do.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |