Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
DJ_Shay

Question about *.cmd content

Recommended Posts

Is the *.cmd file's text case sensitive (not including switches)?

example:

Is there a difference between "EXIT", "eXiT" or "exit"?

Share this post


Link to post
Share on other sites

No, it's not case-sensitive.

Share this post


Link to post
Share on other sites

Commands aren't case sensitive, "EXIT" "eXiT" and "exit" are all the same.

Share this post


Link to post
Share on other sites

what's the difference between .cmd and .bat ?

Share this post


Link to post
Share on other sites
what's the difference between .cmd and .bat ?

You can find your answers if you search.

Share this post


Link to post
Share on other sites
what's the difference between .cmd and .bat ?

In addition to what cluberti linked to, there's a couple more points:

-.cmd being the new extension, won't run on older OS'es (i.e. Win9x and DOS)

-to quote a ex-MS employee (Mark Zbikowski):

The differences between .CMD and .BAT as far as CMD.EXE is concerned are:

With extensions enabled, PATH/APPEND/PROMPT/SET/ASSOC in .CMD

files will set ERRORLEVEL regardless of error. .BAT sets ERRORLEVEL

only on errors.

So for most uses, there's not a whole lot of difference. That being said, there's no reason to still use the very old .bat extension, unless you're writing a batch file for legacy systems (pre-NT)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...