How To Edit Files using cmd
change foramt

This post is about how to edit files by using cmd. It’s so easy. Just follow this instruction and do it yourself.  There are various method to edit files. I show you step by step. I think all of you enjoy it.

If you are new or feel tough to understand this topics, Please read my previous tutorial

CMD Tutorials For Beginners (Part-1) How To Create Folder By CMD

How To Edit files Using Cmd

1st method:

1] Firstly,I have to change directory to desktop.So type

cd desktop

how to edit files using cmd
cd desktop
how to edit files using cmd
newfolder

Now, I am on desktop. I want to edit files of “Newfolder” It’s is a folder name that I created previous post. If you want to see this post click here.

2] So,If I want to edit files in “Newfolder” I have to switch directory from desktop to

newfolder Type this,

cd newfolder

how to edit files using cmd
newfolder

Yeah, I am now newfolder.

3] I want to edit partho.txt file that is in this folder.

how to edit files using cmd
partho

So, type

edit partho.txt 

how to edit files using cmd
partho

Then , a blue window will be appeared.

how to edit files using cmd
blue window of cmd

4]  Yeah, I can edit text now.Suppose I write

I love all lovers.

how to edit files using cmd
blue window love

 

After that I have to save. Go to File tab and click Save

 

how to edit files using cmd
save

Now , You can test it that it got saved or not by going to partho.txt file.

How To Edit Files using cmd
love text
How To Edit Files using cmd
partho.text

5] If I want to save this file as another file extension ,suppose I want to save this file as csv format

Just go to “File” tab and  “Save As” I want to this file save as Partho1.csv

how to edit files using cmd
save

Then we see a  Partho1.csv file is created.

how to edit files using cmd
final saved file

We can back to original cmd window by clicking exit window.

how to edit files using cmd
exit

6] now, if i want to create new text by typing  new text just type

edit 

how to edit files using cmd
edit

Again, blue screen will be appeared.

7] Then ,type just like as your wish. I wrote here ” I want to be a Don in the tech world

don fullfile

Then click “save as” button and give your file name and then type dot(.) and click “ok

suppose I save as this file don.txt

how to edit files using cmd
don

and click ok then  don.txt file created in “newfolder”

how to edit files using cmd
don

I can create directly on C drive. To do that,I have to switch directory from newfolder to C directory.

I have to type code that I showed you i my previous post. To see this click here.

I have to show this again because I want show you another simple tricks.

Following previous post I have to type cd.. code to switch back to another directory from current  directory. Such as, I want to go “Jon “directory from newfolder. I have to type cd.. ,then I return previous directory Desktop . 

how to edit files using cmd
change

Then , I have to again type this code again cd..  Finally I am able  to go Jon directory.

how to edit files using cmd
change

This thing, we can do easily from newfolder to Desktop just type

cd../..

how to edit files using cmd
cd

Not only that if we want to switch back directory from “newfolder “to “C” directory,we have to type this code

cd../../../.. 

how to edit files using cmd
cd..

Here, you see , there have 4 steps  between c directory and newfolder that you have to jump over

so that you have to type double dot (..)4 times.

I think it is clear. ok.

how to edit files using cmd
cd..

Now, if you want to  create a file in C directory .you have to make a new directory in C drive. Then edit files again.

2nd method:

You can edit text in different way. By going to desktop directory then type

copy con mymeetbook.txt

.mymeetbook.txt

here mymeet.txt is a file name

then type your message . Here I typed

I love mymeetbook 

then press enter button type ctrl+Z to copy.

mymeetbook.txt copy

***MyMeetBook  is a largest social platform. If you want to know about mymeetbook.com please Click Here.

3rd method:

Just type

echo 

then type your message here, I typed omar faruk is a founder of mymeetbook

then type arrow (>)button

and save it your desired text format

I saved it lol.txt

lol.txt

press enter

4th method:

You can edit files by opening files by notepad

type

notepad  and type desired file name and extension

suppose , I typed   don.txt

don final text

then ,notepad will be appeared, type what your wish save it your desired format from notepad.

I  saved it don.txt

dontxt

you an also view  this video tutorial , I hope that all of you enjoy it.

CMD Tutorials For Beginners (Part-3) How To Change Drive Directory In CMD

Thank you to all to read this post. If you face any problems please tell us in comment and don’t forget to feedback us…