Windows batch files: .bat vs .cmd?

前端 未结 13 1878
傲寒
傲寒 2020-11-22 17:01

As I understand it, .bat is the old 16-bit naming convention, and .cmd is for 32-bit Windows, i.e., starting with NT. But I continue to see .bat fi

13条回答
  •  一个人的身影
    2020-11-22 17:22

    a difference:

    .cmd files are loaded into memory before being executed. .bat files execute a line, read the next line, execute that line...

    you can come across this when you execute a script file and then edit it before it's done executing. bat files will be messed up by this, but cmd files won't.

提交回复
热议问题