Jump to content

MS_DOS - Command Prompt


Recommended Posts

Hi, im new here on this forum (just made an account like 3 minutes ago)

Is MS-DOS the same as command prompt?

AKA - Will batch files made and designed 4 DOS work with command prompt?

Im trying to make a sort of an OS that runs within DOS or Command prompt....... so i need to know some things about DOS and COMMAND PROMPT or CMD

Also, how do i make a menu in a batch file?

post-14055-1240706043_thumb.jpg

Link to comment
Share on other sites

Hello Daniel, welcome to the Forum. :flowers:

Is MS-DOS the same as command prompt?

AKA - Will batch files made and designed 4 DOS work with command prompt?

Im trying to make a sort of an OS that runs within DOS or Command prompt....... so i need to know some things about DOS and COMMAND PROMPT or CMD

Also, how do i make a menu in a batch file?

You might find some useful information HERE and HERE.

Nice car, huh?
:D Very nice - Is it yours?

P.S. Good luck with your project. ;)

Link to comment
Share on other sites

Hello Daniel, welcome to the Forum. :flowers:

Is MS-DOS the same as command prompt?

AKA - Will batch files made and designed 4 DOS work with command prompt?

Im trying to make a sort of an OS that runs within DOS or Command prompt....... so i need to know some things about DOS and COMMAND PROMPT or CMD

Also, how do i make a menu in a batch file?

You might find some useful information HERE and HERE.

Nice car, huh?
:D Very nice - Is it yours?

P.S. Good luck with your project. ;)

I need to know if my "MY_OS" (My operating system) will run the same on CMD and DOS, is there any difference?

Link to comment
Share on other sites

Here is the code (all of it) so far for my OS

@echo off

title Daniel Computing D.O.S.

color 02

ECHO Copyright Daniel computing inc.

pause

echo Welcome to D.C.D.O.S!

echo Press '1' to go on the internet (Connection required)

echo Press '2' to browse the hard disk.

echo Press '3' to listen to music (Winodws media player)

echo Press '4' to access the Local area network (LAN), and other network tasks.

echo Press '5' to open "All Programs"

echo Press '6' to go to change settings

echo Press '7' to check for updates (Internet connection required)

echo Press '8' to look at SYSTEM_STATUS

echo Press '9' to quit to windows.

pause

echo

Link to comment
Share on other sites

I made a similar menu system pre-Windows wherein by pressing "2" (fror example) it opened a file called "2.bat". This file opened up "dBase " (for example). When dBase was closed, the operation dropped back into 2.bat. The "cd\" and "cls" commands followed this and the last line of 2.bat was m.bat and that was the Menu batchfile again. It was faster than the Windows that followed it.

echo off

cd\data

dbase

cd\

cls

m

Link to comment
Share on other sites

I made a similar menu system pre-Windows wherein by pressing "2" (fror example) it opened a file called "2.bat". This file opened up "dBase " (for example). When dBase was closed, the operation dropped back into 2.bat. The "cd\" and "cls" commands followed this and the last line of 2.bat was m.bat and that was the Menu batchfile again. It was faster than the Windows that followed it.

echo off

cd\data

dbase

cd\

cls

m

Could you use an example?

Link to comment
Share on other sites

I made a similar menu system pre-Windows wherein by pressing "2" (fror example) it opened a file called "2.bat". This file opened up "dBase " (for example). When dBase was closed, the operation dropped back into 2.bat. The "cd\" and "cls" commands followed this and the last line of 2.bat was m.bat and that was the Menu batchfile again. It was faster than the Windows that followed it.

echo off

cd\data

dbase

cd\

cls

m

Could you use an example?

The above is just that..an example.

The original Menu batch file was triggered at boot up by having "m.bat" as the file that was displayed after boot up. This listed applications and the number key to press to go to a particular app.

In this case Ashto-Tate's dBase was number 2 on the menu and when the number 2 key was pressed it ran the file called 2.bat (because the file name suffix is a self starting entity.

So

echo off ......just stopped all the on screen chit chat

cd\data.......changed directory to a directory called Data

dbase.........fired up dbase, and control was passed to dbase. dBase could then be used as needed. When dbase was closed, by "exit", the command dropped back into 2.bat.

cd\.......changed directory back o C:

cls.....cleared the screen

m.......ran the m.bat which was the menu screen again ..ready for the next exciting foray.

It was just the same principle as "nested" commands in basic. Rather like looping.

Link to comment
Share on other sites

Just to come back to your original question - MS-DOS vs. Command Prompt: MS-DOS was an operating system that used line commands; Command Prompt simulates MS-DOS under Windows, and the line commands should be compatible with the original MS-DOS commands.

So, will a batch file run EXACTLY the same in CMD and in MS-DOS?

Or will some commands be different...

Link to comment
Share on other sites

MS-DOS had different versions, with different commands. Some may no longer work under the Windows Command Prompt; some may have more options than they had under older versions of MS-DOS.

But basically it should be more or less the same (but perhaps not EXACTLY).

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy