MD和MKDIR批处理命令有什么区别? [英] What is the difference between MD and MKDIR batch command?

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

问题描述

两个命令均创建文件夹.我阅读,MKDIR甚至可以创建子文件夹.

Both command creates folders. I read that MKDIR can create even subfolders.

  • 那是唯一的区别吗?
  • 为什么有两个命令执行相同的操作?
  • 我应该使用哪个?

推荐答案

同一命令的别名.以下是帮助消息:

Just aliases of the same command.Here are the help messages:

C:\>md /?
Creates a directory.

MKDIR [drive:]path
MD [drive:]path

C:\>mkdir /?
Creates a directory.

MKDIR [drive:]path
MD [drive:]path

If Command Extensions are enabled MKDIR changes as follows:

MKDIR creates any intermediate directories in the path, if needed.
For example, assume \a does not exist then:

    mkdir \a\b\c\d

is the same as:

    mkdir \a
    chdir \a
    mkdir b
    chdir b
    mkdir c
    chdir c
    mkdir d

which is what you would have to type if extensions were disabled.

这篇关于MD和MKDIR批处理命令有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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