Jump to content

Recommended Posts

Posted

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

example:

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


Posted
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)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...