* .bat和* .cmd文件有什么区别? [英] What's the difference between *.bat and *.cmd file?
问题描述
可能重复:
Windows批处理文件:.bat与.cmd?
Possible Duplicate:
Windows batch files: .bat vs .cmd?
我正在学习Windows批处理编程,并遇到以下问题:
I am learning Windows Batch programming and come across this question:
.bat 和 .cmd 文件有什么区别?
如果它们相同,为什么需要其中2个?
If they are the same, why need 2 of them?
顺便说一句, command.com 和 cmd.exe 有什么区别?
BTW, what's the difference between command.com and cmd.exe ?
推荐答案
.bat
文件是DOS遗留下来的. .cmd
文件适用于Windows NT命令处理器或更高版本,并且具有更多功能(某些循环结构,能够从过程类型块中调用和返回的功能).
.bat
files are left-overs from DOS. .cmd
files are for Window NT command processor or higher, and have more capabilities (some looping structures, the ability to call and return from procedural type blocks).
command.com
是运行操作系统的系统,包含DOS和早期Windows版本中的内部命令,例如dir
. Windows NT引入时,它被cmd.exe
取代,并且是第一个32位命令处理器.
command.com
was what ran the operating system and contained the internal commands like dir
in DOS and early versions of Windows. It was replaced by cmd.exe
when Windows NT was introduced, and was the first 32-bit command processor.
这篇关于* .bat和* .cmd文件有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!