Creating New File and Folder in MS-DOS

Published: Last Updated on 23.2K views 4 minutes read
A+A-
Reset

This is another tutorials in MS-DOS Series. In this post, we will learn to Create a new file and folder using DOS System. Before this, I would like to introduce you with Command Prompt.

Prompt means “Assist by suggesting the next words of something forgotten or imperfectly learned.” MS DOS prompt also help you and interfaces with you.

Creating New File in Command Prompt

In above line C: (colon) is current drive , / (backslash) is symbol for directory (folder), Users is directory name, / (backslash) is directory symbol, John is name of folder/directory and > (greater than) is command prompt symbol. This is the place, where you will write command.

How to create a File in MS-DOS?

Use following commands for creating new file in MS-DOS command prompt.

copy con filename ↵
Hi, My name is John. You are learning how to create a file in DOS mode.
^Z ↵

Meaning of above commands.

Creating New File and Folder in MS-DOS 1
Creating New File in MS DOS.

copy con – This command is used for creating new file.

– This is Enter key. This executes command typed in prompt.

Hi,.. .. .. in DOS mode. – This is text of your file.

^Z ↵ – This is Ctrl+Z key. This saves current file. Alternate for this is F6 key.

How to create new Folder in MS-DOS?

Folders are called Directory in MS-DOS. We can use following commands to create a folder (directory) in MS-DOS command prompt.

md foldername ↵

or

mkdir foldername ↵

Meanings of Above Command:

md or mkdir – Make Directory

– Enter Key to execute command.

Bonus Commands related to File & Folder in MS DOS

Purpose / When to use commandCommand Name
To navigate the currently created folder in MS DOS. Type following command.cd FolderName
To Navigate Back from Folder (Exit from Folder)cd.. (One Folder Up)
cd/ (Root of Drive)
View Files & Folders inside Directorydir
To change Disk Drive D: (Drive letter + Colon)
To Open Filetype FileName.txt
Commands are not case sensitive, command prompt will pick file from the current selected directory
Creating New File and Folder in MS-DOS 2

Will be back with more on MS-DOS Series. Till then, you can follow us on Social Media and subscribe on YouTube.

Related Posts

Leave a Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Index

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.