DOS Edit command to use the detailed

Source: Internet
Author: User

The edit command is a simple editing software that we often use to edit some programs and batch files.

For example, I would like to edit a simple batch file in the C-packing directory, requiring that no matter what the current disk and current directory, you need to enter one character W at a time and then enter to run the Windows directory in the C-disk Windows program. That means we're going to edit a batch file with a file name of W.bat. We can typing edit w.bat carriage return at the prompt (which means editing the W.bat file)

After entering the edit state, enter the following: C:

Cd\windows

Win

When you are finished, press Alt+f to activate the File menu and press the down arrow to select Exit (exit).

Then the computer prompts if you want to save the content just entered, if you want to save, just enter Y or direct return.

At this time has edited the W.bat file, and back to the prompt state, with the previous type command to see just edited the W.bat file, just enter type W.bat carriage return.

Learn this, congratulations on your DOS small achievements, already have my 50% level (oh, don't be happy too early, want to surpass me, more than a little kungfu), now you can basically operate the computer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.