Re: HELP: with old DOS programs



Maurice N ~ MVP
07-10-2005, 02:00 AM
jvdplate wrote:
> I am trying to run several old DOS programs on my XP system, and all
> that happens is that a DOS shell window opens for a second, and then
> immediately closes again. I've been through all the choices in the
> "compatibility" wizard, and the suggestion about the <autoexec.nt>
> file. Still no go. Any other suggestions?
> Jack
>

That so-called shell is the Command prompt, which is really a dos emulator.

Be aware of a few things, (1) your dos apps cannot address the hardware devices directly, (2) nor can they use real-mode
drivers. "Real mode dos" programs cannot run in XP.

It's easier to have shortcuts to your dos-app executable & then run it by clicking on that shortcut.

Look up in XP's Help and Support Center, in its search box:
"Set up two shortcuts for an MS-DOS program "
"Create or change a PIF"

Also, while in there , lookup the related topics.

And remember: XP (just like rest of NT family) does not use Config.sys / autoexec.bat;
but does use Config.NT / Autoexec.NT, located at (in \windows\system32 or yours may
be at \winnt\system32 ).

Try running the program in the (alternate) 16-bit dos emulator ----via
Command.com ---
Start | Run | type Command.com <enter>

then try running your program.

Running Nonnative Applications in Windows 2000 Professional (applies to XP as well)
http://www.microsoft.com/resources/documentation/windows/2000/professional/reskit/en-us/part8/proch36.mspx
--
Maurice N
MVP Windows - Shell / User
-----

jvdplate
07-10-2005, 02:01 AM
Maurice,

Thanks for the input. Your "Command.com" suggestion did call up the DOS
screen, but when I tried to run my DOS programs I got "runtime error R6009 -
not enough space for environment." I have already set buffers to 5. Don't
know what else.

You suggested > It's easier to have shortcuts to your dos-app executable &
then run it by clicking on that shortcut.> Same problem. I set up a
shortcut and click it--the DOS window opens and immediately closes.

I have looked up your suggestionabout the "Nonnative Applications" website.
It looks promising, but I'll need time to read and experiment. (This is
one of the many reasons Window users hate Windows and all the hassle caused
by upgrades!!!)

I thank you for your help.

Jack

"Maurice N ~ MVP" wrote:

> jvdplate wrote:
> > I am trying to run several old DOS programs on my XP system, and all
> > that happens is that a DOS shell window opens for a second, and then
> > immediately closes again. I've been through all the choices in the
> > "compatibility" wizard, and the suggestion about the <autoexec.nt>
> > file. Still no go. Any other suggestions?
> > Jack
> >
>
> That so-called shell is the Command prompt, which is really a dos emulator.
>
> Be aware of a few things, (1) your dos apps cannot address the hardware devices directly, (2) nor can they use real-mode
> drivers. "Real mode dos" programs cannot run in XP.
>
> It's easier to have shortcuts to your dos-app executable & then run it by clicking on that shortcut.
>
> Look up in XP's Help and Support Center, in its search box:
> "Set up two shortcuts for an MS-DOS program "
> "Create or change a PIF"
>
> Also, while in there , lookup the related topics.
>
> And remember: XP (just like rest of NT family) does not use Config.sys / autoexec.bat;
> but does use Config.NT / Autoexec.NT, located at (in \windows\system32 or yours may
> be at \winnt\system32 ).
>
> Try running the program in the (alternate) 16-bit dos emulator ----via
> Command.com ---
> Start | Run | type Command.com <enter>
>
> then try running your program.
>
> Running Nonnative Applications in Windows 2000 Professional (applies to XP as well)
> http://www.microsoft.com/resources/documentation/windows/2000/professional/reskit/en-us/part8/proch36.mspx
> --
> Maurice N
> MVP Windows - Shell / User
> -----
>
>

Zilbandy
07-10-2005, 02:01 AM
Do a search for a program called DOSBox. It simulates a dos
environment for games. There's a list of supported games there, too.
It's not the most pleasant thing to set up, but it might solve your
problem.

"jvdplate" <jvdplate@discussions.microsoft.com> wrote:

>Thanks for the input. Your "Command.com" suggestion did call up the DOS
>screen, but when I tried to run my DOS programs I got "runtime error R6009 -
>not enough space for environment." I have already set buffers to 5. Don't
>know what else.

guestfromhell
07-10-2005, 02:01 AM
to change the environmentsize in a dos batch file u use
shell=%systemroot%\system32\command.com /e:512
where the e: parameter is the environment size in bytes. However im
not sure if XP will dynamically allow you to resize the environment
with a restart.

The surefire way is to make a dual boot machine!!


--
guestfromhell
------------------------------------------------------------------------
guestfromhell's Profile: http://www.iamnotageek.com/member.php?userid=12490
View this thread: http://www.iamnotageek.com/showthread.php?t=820074

Maurice N ~ MVP
07-10-2005, 02:01 AM
jvdplate wrote:
> Maurice,
>
> Thanks for the input. Your "Command.com" suggestion did call up the
> DOS screen, but when I tried to run my DOS programs I got "runtime
> error R6009 - not enough space for environment." I have already set
> buffers to 5. Don't know what else.
>
> You suggested > It's easier to have shortcuts to your dos-app
> executable & then run it by clicking on that shortcut.> Same
> problem. I set up a shortcut and click it--the DOS window opens and
> immediately closes.
>
> I have looked up your suggestionabout the "Nonnative Applications"
> website. It looks promising, but I'll need time to read and
> experiment. (This is one of the many reasons Window users hate
> Windows and all the hassle caused by upgrades!!!)
>
> I thank you for your help.
>
> Jack
>
Use Notepad to look at the contents of your Config.NT file.
It should have entries like these

dos=high, umb
device=%SystemRoot%\system32\himem.sys

files=40


Windows XP does not use the "Buffers" entry. It is accepted only for compatibility with MS-DOS programs.
You can bump up the Files= entry in Config.NT

--
Maurice N
MVP Windows - Shell / User
-----


Re: HELP: with old DOS programs