Md Command In Windows Server 2008

In this article I am going to explain about Md Command in Windows Server 2008 operating system and also explain it's related syntax.
  • 2106

Introduction

Md command allows you to create own directory or subdirectory. This command is same as mkdir (make directory) command. Md command is available in Windows Server 2008, Windows 7, Windows Vista, Windows XP, Windows 2000 and Windows NT.

Md command  syntax

md [<Drive>:]<Path>
mkdir [<Drive>:]<Path>

Parameters

Parameter Description
<Drive>: Defines the drive on which you want to create directory.
<Path> Name and location where you want to create the new directory. Maximum length of path is decided by the file system. Avoid using the following characters © ® " - & ' ^ ( ) and @ in directory name.

Examples

1. Make directory named Department within the current directory.

md Directory

2. Make several folders with one command, command extensions enabled.

md Department\Finance\Report

Make directory tree Department\Finance\Report same as in above example but this time command extensions are disabled.

md \Department
cd \Department
md Finance
cd Finance
md Report

 Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.