Thraka
Thraka

Reputation: 2164

What are windows .cmd files called?

While .bat files are referred to as batch (I assume because the extension starts with bat) files, I've sort of always called cmd files batch files too.

Is that the proper term for them? What are they called? I've never heard anyone say, "Make a command file." I've just heard people say "make a batch file," or "make a cmd file."

Upvotes: 0

Views: 788

Answers (1)

Matt Clark
Matt Clark

Reputation: 28629

From Wikipedia these are still called batch files; the following outlines the primary difference between the two.

In addition, "set", "path", "assoc" and "prompt" commands, when executed from a .bat file, alter the value of the "errorlevel" variable only upon an error, whereas from within a .cmd file, they would affect errorlevel even when returning without an error.

Batch File may refer to a script with any of the following three extensions: .bat, .cmd, .btm

Upvotes: 1

Related Questions