In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what are the classic DOS commands, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Case 1. Comparison of FC files
As we all know, when installing software, something will be left in the registry more or less, and a lot of garbage will be left in it over a long period of time, which will gradually slow down our system until it crashes. It is true that there are many useful tools that can help us solve this problem, but if we want to know what they leave in the registry and do not have the right tools on hand, is there nothing we can do? wait a minute, let's come up with the most convenient comparison tool under DOS, FC.
Format: FC [path] < filename > [path] < filename > < / b >
How to use: first export the registry to a file such as 1.reg before installing the software, and then export to a file such as 2.reg after installing the software. Both files are assumed to be placed in the root directory of the C disk. Enter C:\ fc 1.reg 2.reg in MS-DOS mode and enter enter. Did you see that? What is shown on the screen is where the registry has been changed.
Note: FC compares two files line by line by default. The length of each line in the file should be less than 256characters, if the length is more than 256characters or the comparison object is a binary file or program file, you should add the / b parameter after it, and FC will compare them byte by byte.
Case 2. > directional output
Let's go on to the above case. Sometimes when we use the above method, we find that the screen keeps scrolling up, and a lot of information flashes past and can't stop. This is because the difference between the two files is too big, and there are too many changes to the files. What are we going to do? don't worry, at this time we need to use another trick to use directional output >
Format: command (or program) > directed input device (or file name)
How to use it: we also use the above example and enter C:\ fc 1.reg 2.reg > change.txt under DOS.
I don't have any information. In fact, if you take a closer look, you will find that there is an extra FC.txt file in this directory. Open it quickly with WordPad, which contains all the comparative information of these two files:) so easy.
Note: you can export it to any format, and they can all be opened as text.
Case 3. Merging of copy files
There are many times on the Internet to divide the video file into many small pieces for everyone to download separately, but the downloaded files always have to be opened all the time, so is there any way to remerge them into a whole file? It is OK to use special video editing tools, but the tedious E text gives me a headache. In fact, there are ready-made tools under DOS, which can be done with our commonly used copy commands. Let's take a look.
Format: copy / b < filename1 > + < filename2 > + + < filenameN > > filename >
How to use: suppose your hard disk has two files, video1.mpg and video2.mpg, then we can type copy / b video1.mpg+video2.mpg video.mpg in this directory, where video.mpg is the new file name generated by your merge. Give it a try and open the player to see if it is put together.
Of course, if it is too troublesome to keep turning on and off your favorite novels and music, you might as well try this method to watch them together.
Case 4. Copy batch renaming
A friend who wants to do a project needs to rename a series of text files by number, but because the number is too large, it is too troublesome to change it bit by bit in Windows, and the head is too big: (is there a simpler way?) many magazines introduce a lot of tools and methods to achieve this, but I think they are more troublesome. In fact, we can rename in batches by using the DOS command in combination with the Recycle Bin.
Usage: assuming that there are a large number of files to be renamed on the E disk, first get them to the Recycle Bin! (remember! Just delete, do not empty the Recycle Bin, ah, I am not responsible for losing files!), then we enter the E disk in MS-DOS mode, enter cd recycled in the root directory to enter the Recycle Bin, dir to see if all the file names are changed into an order:) then we copy them all. Type copy *. * e:\ and go back to Windows to see if all the files are DE1 and DE2.
Note: 1. Empty the Recycle Bin before deletion, otherwise the file may start with an unknown numeric base.
two。 Go to the recycled folder of the disk where it is deleted, and there are no corresponding files in the other disk.
3. After the file name has been modified, the DX1,D format is fixed, which means that DISK,X corresponds to your drive letter, if it is on disk F, it is DF1, if it is disk D, it is DD1, and so on.
Case 5. Date of document modification by copy
Because of the need to modify the date of the file, a colleague has been busy in Windows for a long time and doesn't know how to change it: (do we really have to turn to special tools? In fact, it can be easily accomplished by using the copy command:)
Format: copy < filename > +
How to use : assuming that the file we want to modify is a redate.dat file, which is on disk C, then we first enter MS-DOS mode and enter copy 123.datalogy under disk C. (note: the plus sign is followed by two commas) and the system will ask you if you want to overwrite it? Isn't it very easy to type Y at this time to change to the current date?
Case 6. FDISK repair boot area
Colleagues boot today suddenly found that the system can not start, the screen prompts No System,System Halted actually according to the prompt we can know, the problem must be in the boot area of the hard drive. This is usually caused by a corrupted boot record or infected by a virus, or there is no bootstrap flag in the partition table, or it may be caused by the overwriting of the closing flag 55AAH.
Format: fdisk / MBR
Usage: start the computer with the DOS boot disk and execute the FDISK / MBR command at the prompt. The FDISK itself contains the master boot program code and the end flag 55AAH, which is fast and effective for repairing the master boot record and the end flag 55AAH, and you don't have to worry about damaging files on any hard drive!
Case 7. Ping to see if it is connected.
While surfing the Internet in the Internet bar, the server was suddenly disconnected, and the network manager was solving the problem. Seeing that he was so busy, we were embarrassed to ask when we could communicate. However, you can't open a web page and keep pressing the refresh button. At this time, you can use a simple DOS command to detect when you can connect in the shortest time, and it doesn't take so much trouble:)
Format: ping < count name >-t
How to use it: execute ping www.XXX.com-t in MS-DOS mode:) you can see that the screen keeps scrolling up, and if it is open, it will display the information of Reply from xxx.xxx.xxx.xxx: bytes=32, otherwise it will display Destination host unreachable. In this way, you can know when the network is open for the first time while doing something else.
Case 8. Debug cracked COMS
What should I do if my friend's brand machine CMOS is inadvertently locked by him? at this time, you may say, just open the chassis and discharge the battery. However, if the brand machine dismantles the chassis, most of the warranty problems will be lost. In fact, there is a very useful tool under DOS to unlock the password DEBUG. Because this is a tool, it is too broad and profound to give a format. But you can follow me step by step, let's not learn too much, just talk about it.
After booting the system, enter DOS mode. If it is Windows Me (XP), start with the boot disk and enter the following instructions under DOS:
Debug
-o70 21
-o71 20
-Q
About which classic DOS commands are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.