Page 1 of 1
What was cmd programmed in?
Posted: 02 Oct 2011 00:19
by Rileyh
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
Re: What was cmd programmed in?
Posted: 02 Oct 2011 06:55
by aGerman
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
Re: What was cmd programmed in?
Posted: 06 Oct 2011 22:55
by Rileyh
aGerman,
Thanks for the post.