Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When was Batch created?

Tags:

batch-file

cmd

I know this isn't strictly a programming related question, but I cannot seem to find an answer.

In what year was Batch created? Or is it more appropriate to talk about the year CMD was created? In which case - in what year was CMD created?

I apologize if this question is against the rules in any way. The reason I ask is to participate in a challenge over at the Code Golf StackExchange site.

like image 429
unclemeat Avatar asked Apr 07 '15 05:04

unclemeat


Video Answer


3 Answers

Do you need to distinguish the command.com and cmd.exe ?

Command.com - was the command line interpreter from the earliest versions of DOS and QDOS created by Tim Paterson (around 1981) , but the command.com also passed through a lot of changes and may be the most drastic in its 5th version.

MSDOS 1.0 supported commands - (CD COPY DEL DIR EDIT FORMAT HELP MKDIR RD REN TYPE )

In MSDOS 5.0 (1991) more advanced commands were introduced - (even microsoft keeps a documentation for it) and may be its a little bit closer to a programing language.

In 1993 Windows NT was released packed with the new cmd.exe (along with the old command.com) created by Therese Stowell - it has a lot new features like additional switches for FOR and IF commands , subroutines and etc. And this is the 'modern' batch-scripting what we know today (though it is close to the ms-dos 5 command.com).

This has cost me some time in googling but hope the info is enough :)

like image 144
npocmaka Avatar answered Sep 28 '22 06:09

npocmaka


The earliest reference to batch files is 1981, with the release of IBM PC DOS 1.0 - it used the file AUTOEXEC.BAT to run various commands at startup.

And imo this question falls into a grey area regarding whether or not it's on-topic; there's no specific programming question, but it's still related to programming, and that's apparently okay according to the review audit that I recently failed.

like image 37
SomethingDark Avatar answered Sep 28 '22 06:09

SomethingDark


MSDos was based on CP/M features for compatability. Unix type features added in in Ver 2. CMD started as a command shell that would run MSDos batch files but have added features in OS/2 (IBM not MS did CMD). CMD got taken into NT and there are two main versions pre Win 2000 and post Win 2000. Prior to Windows 2000 Dos batch files and programs ran in the OS/2 sub system, not the Dos emulator in the Windows sub system.

The command.com in Windows now is ver 5.5 and passes all commands to cmd to execute unless started like this command.com /k ver (compare that to typing command.com then ver).

like image 34
Serenity Avatar answered Sep 28 '22 06:09

Serenity