* .bat和* .cmd文件有什么区别? [英] What's the difference between *.bat and *.cmd file?

查看:202
本文介绍了* .bat和* .cmd文件有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆