6
We rarely see file .cmd
, but when opening it, we see that its content is very close to a .bat
.
- What is the reason for this similarity ?
- What would be the main differences between them ?
6
We rarely see file .cmd
, but when opening it, we see that its content is very close to a .bat
.
4
The only difference between .cmd
and .bat
, is that in the .cmd
the variable ERRORLEVEL
also in the case of successful commands affected by command extensions when activated (PATH/APPEND/PROMPT/SET/ASSOC).
Already in the .bat
the variable ERRORLEVEL
will only change in case of an error.
Browser other questions tagged cmd batch
You are not signed in. Login or sign up in order to post.
Sacha, when you "copy" the answer from somewhere, it’s nice to post the source. You should also pay attention to incorrect "translations". I’ve got it right for you.
– rbz
Edited ! Obg ! Friend sorry if not to understand I am French-speaking !
– SachaDee