How to create a directory or folder
Creating a folder in Microsoft Windows
There are a few ways to create a folder or subfolder (a folder within a folder, often referred to as a subdirectory) in Microsoft Windows. Below is a listing of these different methods.
My Computer or Windows Explorer
- Open My Computer or Windows Explorer
- Open the drive or folder in which you'd like to create the new folder; for example, the C: drive. If you do not want to create a folder in the root directory, browse to the location of your choosing.
- On the menu bar, select File and then Folder. You can also right-click with your mouse on a blank portion of the folder, click New and then Folder, as shown in the image below.
Note: If you do not see the menu bar at the top of Windows Explorer, press the Alt key and it should become visible.
- Navigate to the Windows Desktop.
- Right-click with your mouse on any blank portion of the Desktop.
- In the menu that appears (like that shown in the picture to the right), click New and then Folder.
- A new folder will appear. Type the name of the folder you want to use and then press Enter.
Windows command line
See the following MS-DOS and Windows command line users section for information about creating a directory in the Windows command line.
Creating a directory in MS-DOS and the Windows command line
Tip: It is more appropriate to use "directory" instead of "folder" when referring to the command line.
You can also create multiple new directories in the current directory by using the md command. In the next example, we are creating three new directories, called "user1", "user2", and "user3", in the current directory.
md user1 user2 user3
To create a directory in the parent directory, without first moving into that directory, you can use the command below. This example moves back one directory to create the "example" directory.
To create a subdirectory in a different directory without moving into it, use a command similar to the example below, which creates a "test" directory in the hope directory.
Tip: Once a directory has been created you can use the cd command to change the directory and move into that directory.
To make a directory in another drive without moving into that drive you could use a command similar to the example below, which creates an "example" directory on the F: drive. The drive letter "f:" can be substituted from any drive letter.
Creating a directory in Linux, Unix, their variants
Tip: It is more appropriate to use "directory" instead of "folder" when in a command line.
Tip: Once the directory has been created you can use the cd command to change the directory and move into that directory.
Creating a folder and directory in Microsoft Windows 3.X
- Open File Manager
- Open the folder in which you'd like to place the new folder and in the menu at the top of File Manager, select File and then new folder.
See the above MS-DOS users section for information about creating a directory in MS-DOS.