batch vs CMD

Posted on 2004-11-07
Last Modified: 2008-01-09
Whats the diff between *.bat and *.CMD and when would you use one over the other
Question by:CMILLER
    LVL 95

    Expert Comment

    by:Lee W, MVP
    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:

    Personally, I almost always use .cmd

    Author Comment

    On my logon scripts ( all clients are XP ) should I use CMD
    LVL 95

    Accepted Solution

    If all clients are XP, then I'd use .CMD.
    LVL 95

    Expert Comment

    by:Lee W, MVP
    I'd suggest leaving the question open a while and see what others might say.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
    YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT ( The crux of this batch f…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now