Re: .bat vs .cmd

Tech-Archive recommends: Fix windows errors by optimizing your registry



jda wrote:
> Is there someone who can tell me the actual difference between
> files with .bat and .cmd extensions other than .cmd will not run
> under win9x systems. I have tried microsoft.com and a lot of
> googleling but have not yet found an answer other than being
> recommended to use .cmd when scripting for XP

Just a file extension. Both are the same in Windows XP.

..bat == .cmd, according to the REGISTRY (wow, looked far for that one...)

..cmd is just "NT command line program" or something, while .bat is a "batch
script" (it's just a name, they both do exactly the same.)

Why use one over the other? Consistency with the features of the OS or
compatibility with older OSes.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


.