Windows batch files: .bat vs .cmd?

前端 未结 13 1738
傲寒
傲寒 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:35

    I believe if you change the value of the ComSpec environment variable to %SystemRoot%system32\cmd.exe(CMD) then it doesn't matter if the file extension is .BAT or .CMD. I'm not sure, but this may even be the default for WinXP and above.

    0 讨论(0)
提交回复
热议问题