I would like to know what language cmd was programmed in because I am going to make a batch file that is basically a help batch file (cmd /? is so fricking hard to understand!!! )
Rileyh
What was cmd programmed in?
Moderator: DosItHelp
Re: What was cmd programmed in?
Even if it is a bit off topic ...
I'm virtually certain that the cmd is written in C. If you open cmd.exe in a HEX editor you will find some hints. One of the important is that msvcrt.dll is linked. This is the C-runtime. Also in relation to some plain text phrases you will often find the combination %s which is used in the C function printf for writing a string output to the console window.
Another possible language is C++ since nearly each C functionality is included in C++.
Maybe someone else found an official M$ article which tells you what language was used...
Regards
aGerman
I'm virtually certain that the cmd is written in C. If you open cmd.exe in a HEX editor you will find some hints. One of the important is that msvcrt.dll is linked. This is the C-runtime. Also in relation to some plain text phrases you will often find the combination %s which is used in the C function printf for writing a string output to the console window.
Another possible language is C++ since nearly each C functionality is included in C++.
Maybe someone else found an official M$ article which tells you what language was used...
Regards
aGerman
Re: What was cmd programmed in?
aGerman,
Thanks for the post.
Thanks for the post.