(How-to) Remove MS-DOS exit instructions (Windows 3.1x)

Discuss MS-DOS, Windows 1, 2 and 3.
Post Reply
Fanta Shokata
Posts: 9
Joined: Sat Oct 10, 2020 12:48 pm
Location: Tricity, Poland

(How-to) Remove MS-DOS exit instructions (Windows 3.1x)

Post by Fanta Shokata »

In this guide you will learn how to remove MS-DOS exit instructions when you open the MS-DOS prompt.

1. Open SYSTEM.INI file (it's located in the C:\WINDOWS directory)
2. In the [386Enh] section add the following line: DOSPromptExitInstruc=off
3. Save and close the file.
4. You need to restart Windows for changes to take effect.
5. If you want to restore DOS exit message then simply remove the aforementioned line.
More Fanta. Less Serious

xpclient
User avatar
FTP Access
Posts: 469
Joined: Fri Aug 28, 2009 1:10 pm
Location: Windows

Re: (How-to) Remove MS-DOS exit instructions (Windows 3.1x)

Post by xpclient »

You know it would help if you put screenshots for your guides. Just a suggestion.
xpclient
Huge Microsoft fan and old software collector since Windows 3.0 and MS-DOS :mrgreen:
I did the testing and feedback for Classic Shell.

os2fan2
User avatar
Donator
Posts: 1307
Joined: Sun Dec 30, 2007 8:12 am
Location: Brisbane, Queensland
Contact:

Re: (How-to) Remove MS-DOS exit instructions (Windows 3.1x)

Post by os2fan2 »

Gosh, ye need screenshots to edit ini files these days. In the win30 manual, there is a section on editing win.ini with edlin. I mean, the info is clear enough.

xpclient
User avatar
FTP Access
Posts: 469
Joined: Fri Aug 28, 2009 1:10 pm
Location: Windows

Re: (How-to) Remove MS-DOS exit instructions (Windows 3.1x)

Post by xpclient »

I didn't say I need screenshots to help me edit INI files or that the info wasn't clear enough. Screenshots can show before/after so we can decide if the tweak, especially if it's a cosmetic one like changing one notice, or changing the look of Excel boxes is worth doing instead of actually doing it. Why do app websites have screenshots? Is it because we can't install the apps ourselves to check it out? :D
xpclient
Huge Microsoft fan and old software collector since Windows 3.0 and MS-DOS :mrgreen:
I did the testing and feedback for Classic Shell.

Darkstar
User avatar
Donator
Posts: 938
Joined: Fri May 14, 2010 1:29 pm
Location: Southern Germany

Re: (How-to) Remove MS-DOS exit instructions (Windows 3.1x)

Post by Darkstar »

What's do you mean by "exit instruction"? It removes the exit command?
I upload stuff to archive.org from time to time. See here for everything that doesn't fit BA

Fifo
FTP Access
Posts: 47
Joined: Thu Mar 13, 2014 2:05 pm
Location: Slovakia

Re: (How-to) Remove MS-DOS exit instructions (Windows 3.1x)

Post by Fifo »

Darkstar wrote:
Tue Oct 13, 2020 9:27 pm
What's do you mean by "exit instruction"? It removes the exit command?
I’m sure he’s referring to this thing:
Image
for (i = 0; i < 100; i++) printf("Hello World!"); // How many lines of code is this?


/* Now how many lines of code is this? */
for (i = 0; i < 100; i++)
{
     printf("Hello World!");
}

Post Reply