What was cmd programmed in?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

What was cmd programmed in?

#1 Post by Rileyh » 02 Oct 2011 00:19

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!!! :D)

Rileyh

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: What was cmd programmed in?

#2 Post by aGerman » 02 Oct 2011 06:55

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

Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

Re: What was cmd programmed in?

#3 Post by Rileyh » 06 Oct 2011 22:55

aGerman,
Thanks for the post.

Post Reply