1.

Solve : Working of DOS?

Answer»

Hi guys, i want to know how that the DOS and its commands are working. I mean CONSIDER a command md which makes a directory. In here what process in going . How DOS creates directory etc ... Like this For all commands i need explanation Your QUESTION is a little vague - and to explain the operation of the cmd prompt could take hundreds of pages.

If you have specific questions then it's probably better if you ask them - or else we don't know how much info to offer and at what level.from what I understand cmd.exe simply opens exe's in system 32 and inputs certain parameters based on the /'s, -'s or |'s into that exe. I would assume these exe's are written in c++ but they could be just as easily made in any language (I wrote one in batch and converted it and it runs just like it's own command)No.
The original DOS was written in assembly.ms-dos (and win3.1, win95, win98, win ME) used the command interpreter, called command.com, which processed certain file-related commands. more advanced commands and 3rd party programs were separate .com or .exe files, which were executed by the command interpreter. cmd.exe is a bit of a 'modern' command.com, which actually USES the standard WINDOWS API to run commands. when you type the md command, cmd.exe directly executes a CreateFile API call. some commands, as previously in ms-dos, are executed by external programs (such as xcopy). It would be pointless to find out how every command is executed because there are many of them, and some of the processes are changed by command-line switches you pass to them. An explanation of WHY you need this information would possibly help us find a better resource for you.If the OP has already stated study of C++ or C#, he would do well to pursue his study. IMHO.
DOS is history. If .you want to learn history -
read the book "Windows 95".Quote from: Geek-9pm on August 11, 2012, 09:11:45 PM

If the OP has already stated study of C++ or C#, he would do well to pursue his study. IMHO.
DOS is history.
(...)

The OP has stated study of C++/C#?

I guess what I was really getting at was, if he needs to actually know how DOS worked to program something similar, that's one thing. KNOWING how 'DOS' (aka the command-prompt-that-people-think-is-dos-but-isn't) now works is something that is already indirectly covered in many programming tutorials (how to create folders, copy files, get directory listings, etc.) That's why I asked for what purpose he is researching this....and I don't think the OP is going to return either. 6 days, a number of posts, and no reply...


Discussion

No Comment Found