DJ_Shay Posted July 14, 2008 Share Posted July 14, 2008 Is the *.cmd file's text case sensitive (not including switches)?example:Is there a difference between "EXIT", "eXiT" or "exit"? Link to comment Share on other sites More sharing options...
cluberti Posted July 14, 2008 Share Posted July 14, 2008 No, it's not case-sensitive. Link to comment Share on other sites More sharing options...
redxii Posted July 14, 2008 Share Posted July 14, 2008 Commands aren't case sensitive, "EXIT" "eXiT" and "exit" are all the same. Link to comment Share on other sites More sharing options...
DJ_Shay Posted July 14, 2008 Author Share Posted July 14, 2008 10x. Link to comment Share on other sites More sharing options...
oskingen Posted July 14, 2008 Share Posted July 14, 2008 what's the difference between .cmd and .bat ? Link to comment Share on other sites More sharing options...
cluberti Posted July 14, 2008 Share Posted July 14, 2008 what's the difference between .cmd and .bat ?You can find your answers if you search. Link to comment Share on other sites More sharing options...
CoffeeFiend Posted July 14, 2008 Share Posted July 14, 2008 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 .CMDfiles will set ERRORLEVEL regardless of error. .BAT sets ERRORLEVELonly 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) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now