Computing.Net > Forums > Disk Operating System > DOS shell & DOS prompt

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS shell & DOS prompt

Reply to Message Icon

Name: yellow belt
Date: June 12, 2003 at 12:26:46 Pacific
OS: Win 3.11
CPU/Ram: 50/16
Comment:

Is there a way I can get DOS 5.0 to boot to the DOS prompt instead of always going straight into the shell?



Sponsored Link
Ads by Google

Response Number 1
Name: Petit Jean
Date: June 12, 2003 at 12:37:45 Pacific
Reply:

Put a rem statement or ; in front of the dosslell.exe line in the autoexec.bat file that you open from dos with edit.com or from Windows wit write.exe or any text editor.You will read the lines in autoexec.bat like this:
edit C:\autoexec.bat (press enter)
Make the change to the dosshell line(probably the last line).
rem C:\dos\dosshell.exe
or
;c:\dos\dosshell.exe
Press ALT,choose Exit and say Yes to save the file.
You can start dosshell.exe from the C dos prompt when you need it later.
Good luck.


0

Response Number 2
Name: yellow belt
Date: June 12, 2003 at 14:03:39 Pacific
Reply:

It took me a while to understand what you said but got it after a few min. anyway I added the ; before the C:\dos\dosshell and saved it and it still started in dosshell instead of C prompt.


0

Response Number 3
Name: x86
Date: June 12, 2003 at 16:20:34 Pacific
Reply:

Try the REM instead fo ;


0

Response Number 4
Name: yellow belt
Date: June 12, 2003 at 18:29:29 Pacific
Reply:

The REM worked like a charm, thanks P.J. and x86.


0

Response Number 5
Name: Dex
Date: June 19, 2003 at 03:48:11 Pacific
Reply:

Hi yellow belt; Just to add to this a bit, the semi-colon (;) is used to remark lines in config.sys. Double-colons (::), followed by a space, are used to remark autoexec.bat entries. I have no idea why MS did it this way, but it is actually preferable to use the double-colons rather than REM.

:: c:\dos\doshell.exe

Also, keep in mind, if your sure you never want to start in the shell, just delete that line. You can always start "doshell.exe" manually at any time.

Dex


0

Related Posts

See More



Response Number 6
Name: Dex
Date: June 19, 2003 at 04:34:38 Pacific
Reply:

Of course, if you want to get fancy, add this in place of your c:\dos\doshell.exe:

cls
echo.
echo.
choice /N /T:n,4 " Run DosShell? (Y/N)"
cls
if errorlevel 2 goto Noshell
c:\dos\dosshell.exe
:Noshell

You can change the "4" to however long, (or short), you want the "timeout" to be.

Enjoy, Dex


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS shell & DOS prompt

Frozen DOS prompt in W95 www.computing.net/answers/dos/frozen-dos-prompt-in-w95/4484.html

please insert disk for MS-DOS prompt?!!! www.computing.net/answers/dos/please-insert-disk-for-msdos-prompt/240.html

reading Ini file variables from Batch/Dos Prompt www.computing.net/answers/dos/reading-ini-file-variables-from-batchdos-prompt/4422.html