Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 192 Vote(s) - 3.64 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When was Batch created?

#1
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](

[To see links please register here]

) StackExchange site.
Reply

#2
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.
Reply

#3
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`).
Reply

#4
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][1] created by [Tim Paterson][2] (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 )][3]

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


In 1993 [Windows NT][6] was released packed with the new **cmd.exe** (along with the old command.com) created by [Therese Stowell][7] - 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 :)


[1]:

[To see links please register here]

[2]:

[To see links please register here]

[3]:

[To see links please register here]

[4]:

[To see links please register here]

[5]:

[To see links please register here]

[6]:

[To see links please register here]

[7]:

[To see links please register here]

Reply

#5
I don't remember exactly when I bought my first PC computer, but it should be around 1984 or 1985; it was a "PC clone" Printaform computer that featured MS-DOS 2.11 with Batch files executed by command.com program. I vividly remember that the Batch features of that time were enough to write many interesting programs. It had variable management via `SET` command and `%variable%` value replacement, and `FOR`, `IF` and `CALL` commands, including recursive subroutines.

Shortly after that I read an article in Dr. Dobb's Journal that show me how to modify command.com's environment variables from a running program, so I wrote my first program of this type, LET.COM, that allowed me to perform advanced variable management in Batch files, like arithmetic operations, data input, etc. many years before the modern cmd.exe Batch file features.

You may review the history of MS-DOS development, including Batch file features, in many sites in the web, like [this one in Wikipedia][1].

[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through