DOS command eight classic cases
DOS has gradually been far away, we used Windows every day.
98 / ME / 2000 / XP, but do you understand DOS in Windows? In fact, when DOS is still more convenient than Windows, this is the classic of the operating system. Here, the author summarizes the three cases in using the DOS process to explain, I hope more less can be omitted and helpful to readers in the process of using the computer.
Case 1, "FC" - file contrast
As we all know, when installing the software, you will generally leave any or less in the registration form, and there will be a lot of garbage in the long run, so that our system will gradually slow down until collapse. It is now a lot of tools now to help us solve this problem, but if we want to know what they have left in the registration table, and there is no suitable tool, is there any hand? Wait, we invite the most convenient comparison tool under DOS - "FC"
Format: FC [PATH]
How to use: First export the registry before installing the software as a file such as: "1.reg", after installing the software, then export as a file as: "2.reg". These two files assume that they are placed in the root directory of the C drive. We entered the MS-DOS mode input "C: / FC
1.Reg 2.Reg "Enter. It doesn't see it? It is a place where the registry is changed.
Note: The FC defaults to two files. The length of each line in the file should be less than 256 characters. If the leader exceeds 256 characters or compare objects are binary or program files, they should be added with / b parameters, and the FC will compare them by byte.
Case 2, ">" - Directional output
We follow the cases above. Sometimes we find the screen to scroll up when using the above way, a lot of information will stop, this situation is because the two files are too big, the document is changed. Too much. How to do it? Don't worry, at this time we have to use another tip - use the orientation output ">"
Format: Command (or Program)> Directional Enter Device (or File Name)
How to use: We also use the above example, enter C: / fc 1.Reg 2.reg> change.txt Enter.
What information is gone. In fact, you will find more than a fc.txt file in this directory, open it with a writing board, but all the comparison information of these two files:) SO
Easy.
Note: You can output it to any files in any format, which can be opened in text.
Case 3, "Copy" - File merge
I have a lot of time to split video files into a lot of small paragraphs to let everyone download, but when downloading a good file is always going to open, then there is any way to let them reintegrate into a whole file? It is okay, but that cumbersome E text makes me a long history. In fact, there is a ready-made tool under DOS. You can do it with our common "Copy" command, let's take a look.
Format: COPY / B
How to use: Suppose your hard disk has two files, video1.mpg and video2.mpg, then we entered in this directory "COPY / B
Video1.mpg video2.mpg
"Video.mpg" You can, where video.mpg is the new file name generated after you merge. Try to try it, open the player to see if you are spent. Of course, your favorite novels, music, if you are not Stopping to turn off too much trouble, try this method to watch them together.
Case 4, "copy" - batch rename
A friend wants to do a project to rename a series of text files, but because there are too many quantities, it is too much trouble in Windows, and the head is big: (Is there a simple way?) A lot Many tools and methods have been introduced to implement this, but I think it is more troublesome. In fact, we can use the DOS command and the recycle bin to complete the bulk change name.
How to use: Suppose there is a lot of files to be renamed on the E disk, then first get them in the recycle station! (Remember! Just delete, don't empty the recycle bin, the file is lost, I am not responsible!), Then we enter MS -DOS mode E disk in the root directory "CD
Recycled "Enter the recycle bin, DIR to see, is all the file names to change into the order :) Next, we will copy them. Enter" Copy *. *
E: / "Haha, return to windows to see if all the files are DE1, DE2 ....
Note: 1. Before deleting, you should first empty the "Recycle Bin", otherwise the file will be possible to start from the unknown numeric base.
2. Which disk is deleted, enter which disk's Recycled folder, there is no corresponding file in another disc.
3. The file name is modified, named DX1, D is fixed representation Disk, x is corresponding to your drive letter, if it is DF1 in the F disk, if it is D-DD1, according to this type.
Case 5, "copy" - change the date of the file
A colleague is ready for a long time because of the work needs to modify the document, and I don't know how to change it for a long time: (Do we really can we only ask for special tools? Actually, it is also easy to use the copy command. :)
Format: COPY
Bamboo
How to use: Suppose the file we want to modify is the redate.dat file, it is in the C drive, then we first enter the MS-DOS mode, enter "Copy under C-" COPY
123.dat , "(Note: After the addition of 2 comma numbers) Enter the system, the system will ask you to overwrite? When you type" Y ", if it is changed to the current date, is it very simple?
Case 6. FDISK-Repair Booting Area
Colleagues are turned on today, suddenly discovered that the system cannot start, screen prompts "no system, system, system
Halted "In fact, according to the prompts, we can know that the problem is definitely on the drive area of the hard disk. This situation is generally guided record damage or virus infection, or the partitioned table has no self-raised sign, and it is possible to end the sign 55ah Caused by rewriting.
Format: fdisk / MBR
How to use: Start your computer with a DOS boot disk and execute "FDISK at prompt"
/ MBR "command. In itself, it contains the main boot program code and end flag 55aah. This trick is fast-flying and ending flag 55aah is fast, and doesn't have to worry about the file on any hard disk!
Case Seven, "Ping" - View Whether Connection
When Internet cafes are online, the server suddenly disconnects, and the network management is solving the fault. It is not so embarrassed that he is busy with sweating. "When can you pass." But I can't open a page to keep pressing the refresh. At this time, I can detect when I can connect it in the shortest time, and I don't have to work :) format: ping
How to use: Perform "PING in MS-DOS mode"
Www.xxx.com
-t "Yes :) You can see the screen keeps rolling, if you are pass, you will display" reply from xxx.xxx.xxx.xxx:
Information bytes = 32 ... ", otherwise," Destination Host "
Unreachable ". So you can know when you don't do anything while you can do it in the first time.
Case 8, "Debug" - Crack COMS
My friend's brand CMOS was locked in unintentional, what should I do? At this time, you may say that open the chassis to discharge the battery. However, if the brand is removed if the problem is more warranty. In fact, there is a very easy to use tools to unwave this password --debug. Because this is a tool, it is really profound, so it can't give it. But you can follow me step by step, let's don't learn too much, just don't make things about things.
When the system enters the DOS mode, if it is Windows ME (XP), start with the boot disk, enter the following instructions under DOS:
Debug
-o70 21
-o71 20
-Q
Ok, let's restart your computer to see if it has been unspeakdated:
About case analysis, let's talk about it, although DOS has been eliminated from us, but when your system has a blue screen, when your system crashes, when you feel cumbersome, maybe when you solve some problems DOS can give you the best answer.
Description: All the above methods can be used in Microsoft any operating system environment, and all external programs can be found in the startup disk of Windows 98.