daniel courtney Posted April 26, 2009 Report Share Posted April 26, 2009 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 CMDAlso, how do i make a menu in a batch file? Link to comment Share on other sites More sharing options...
daniel courtney Posted April 26, 2009 Author Report Share Posted April 26, 2009 Nice car, huh? Link to comment Share on other sites More sharing options...
Irene Posted April 26, 2009 Report Share Posted April 26, 2009 Hello Daniel, welcome to the Forum. 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 CMDAlso, 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 More sharing options...
daniel courtney Posted April 26, 2009 Author Report Share Posted April 26, 2009 Hello Daniel, welcome to the Forum. 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 CMDAlso, 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 More sharing options...
daniel courtney Posted April 26, 2009 Author Report Share Posted April 26, 2009 Here is the code (all of it) so far for my OS@echo offtitle Daniel Computing D.O.S.color 02ECHO Copyright Daniel computing inc.pauseecho 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 settingsecho Press '7' to check for updates (Internet connection required)echo Press '8' to look at SYSTEM_STATUSecho Press '9' to quit to windows.pauseecho Link to comment Share on other sites More sharing options...
Chris Posted April 26, 2009 Report Share Posted April 26, 2009 That will work.You're missing the CHOICE and GOTO though for it to know what was pressed and what to do. Link to comment Share on other sites More sharing options...
catgate Posted April 26, 2009 Report Share Posted April 26, 2009 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 offcd\datadbasecd\clsm Link to comment Share on other sites More sharing options...
daniel courtney Posted April 26, 2009 Author Report Share Posted April 26, 2009 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 offcd\datadbasecd\clsmCould you use an example? Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted April 27, 2009 Report Share Posted April 27, 2009 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. Link to comment Share on other sites More sharing options...
catgate Posted April 27, 2009 Report Share Posted April 27, 2009 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 offcd\datadbasecd\clsm 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 Datadbase.........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 More sharing options...
daniel courtney Posted April 27, 2009 Author Report Share Posted April 27, 2009 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 More sharing options...
ɹəuəllıʍ ʇɐb Posted April 28, 2009 Report Share Posted April 28, 2009 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 More sharing options...
Recommended Posts