DJ_Shay Posted July 14, 2008 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"?
redxii Posted July 14, 2008 Posted July 14, 2008 Commands aren't case sensitive, "EXIT" "eXiT" and "exit" are all the same.
cluberti Posted July 14, 2008 Posted July 14, 2008 what's the difference between .cmd and .bat ?You can find your answers if you search.
CoffeeFiend Posted July 14, 2008 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)
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now