You are on page 1of 2

Create Folders

• How to create folders using cmd


• First run the cmd
• To list out all the drive disks in our computer run the command “wmic logicaldisk get name” after lounching
the cmd
• Choose/locate the path where the folder needs to be created
Example “D:” click Enter ----- then it opens the D drive
“D:>\mkdir Folder1”------- then press Enter //mkdir is a command stands for “make directory”
“D:>\” the folder named “Folder1” is created inside D drive
• If we need to create more than one folder at a time we can type “D:>\mkdir Folder1 Folder2 Folder3”
• It will automatically create the three folders inside D drive.
• To create a sub-folder /a child folder inside the root folder/ use the command:
• “D:>\cd Folder1” then click Enter it displays “D:>\Folder1>” //CD is a command stands for “Change Directory”
• To navigate to the previous directory (or back) use "cd ..“
• To Show Folder structure or Folder tree type the command “tree D:”
Rename,Copy and Delete Folders Using cmd
• To Rename a folder use the command “ren Folder1 F1”
• To Delete the folder use the command “rd F1” => but here first we have sure
that the folder do not contain any folder inside it
• To Copy the folder run the command “copy F1 Folder2”
How to Create Files inside Folder in cmd
• To create file inside the folder type the command “echo textttts >
f_name.file_extension”
• Example : “D:>\F1>echo this is test file > test.doc” => creates a text file named “test.txt”
contains a text inside F1 folder
• To delete files inside the folder type the command “delete filename.extension”

You might also like