Link to home
Start Free TrialLog in
Avatar of Chris Miller
Chris MillerFlag for United States of America

asked on

batch vs CMD

Whats the diff between *.bat and *.CMD and when would you use one over the other
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

NT-based Operating Systems can use .cmd.  9x based OSs must use .BAT.  There IS a difference, but a very tiny one - unfortunately I don't recall what it is, but I believe it had to do with the interpretation of Command Extensions.  (This difference was likely not by design and more of a bug - I'm all but convinced they were supposed to be interpreted identically).

For general info on the NT Command Shell and Shell Scripting, you might want to check out: http://www.microsoft.com/technet/prodtechnol/winntas/deploy/shellscr.mspx

Personally, I almost always use .cmd
Avatar of Chris Miller

ASKER

On my logon scripts ( all clients are XP ) should I use CMD
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'd suggest leaving the question open a while and see what others might say.