Fog Creek Software
Discussion Board


Hi all
I'm learning programming with ms-dos, with the idea to move on linux later. Windows programming is quite interesting too.....
I have search on the internet many books about ms-dos, and I'm learning what I should have learned before moving to windows 98. (ms-dos is really powerful)
But I can't really figure out what ERRORLEVEL is. Even reading about it in several manuals. I'm a c programmer, and the definition said "it's a code given by the program"
so is it the number gven by return 0; function in main()??
My intention is to make an interactive batch file using a .com program to get key typed by the user then using ERRORLEVEL to interpret the key typed. (If you have done something similar just tell me how)

By the way, how can ERRORLEVEL be use in windows?

Thanks in advance for any assistance you might be able to provide.


Monday, April 26, 2004

Russell Thackston
Monday, April 26, 2004

Sorry.  Meant to give you the link below.  Though many of the links returned by Google are helpful.

Russell Thackston
Monday, April 26, 2004

//I'm learning programming with ms-dos, with the idea to move on linux later. ... (ms-dos is really powerful)

MS-DOS's shell is like a toy comparing to linux's shells. And DOS(not add-ons) just implements a tiny subset of linux's shells commands. Maybe instead of learning MS-DOS, which is almost useless now, you should go straight to start learning linux.  You can avoid some confusion too.

Most undergrads learn linux without any prior knowledge of MS-DOS.

Monday, April 26, 2004

While we're discussing DOS, I'll mention something I found today:

"Command Prompt Explorer Bar"

Basically press CTRL-M on any Explorer window, and it pops up an embedded shell window starting at that directory.

Oh, and I agree that Linux shells are much more robust than standard DOS, if that matters.

Monday, April 26, 2004

Thanks for all

Monday, April 26, 2004

*  Recent Topics

*  Fog Creek Home