• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

What is cmd.exe written in?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Culbrelai

Member
Joined
Oct 25, 2012
What language did Microsoft use to create such a simple yet powerful program? I would like to know, for posterity if for nothing else lol. Can't seem to find any information anywhere on it.
 
It's just a terminal, it gives access to direct command line things that you would otherwise do with a mouse.
Much like the Linux terminal.

As such, it's essentially a window into the guts of Windows. What it's written in doesn't really matter, as it's not a standalone thing. The power it has comes from being a hole into the soul of Windows.
Odds are that it and windows are all written in the same C-derived language, whatever it is these days. C# maybe.
 
^^ What he said. I'd guess that it's probably written in C, given the basic nature of it. DOS, on the other hand (from which the Windows 'terminal' was spawned), was written directly in ASM.

If you think the plain ol' cmd.exe is powerful, you should give Powershell a whirl. :)
 
Back