I believe there are very few people who are willing to use the command line. The reason is simple: trouble. The fact is indeed this, but some work tend to use the command line to be convenient, such as the regular backup. Next, the favorite of the backup IE is an example (of course, directly copying backup):
1. Create a batch file, only 1 line in the front :)
Backfav.bat (name can be casual) file content:
Rem This batch file is a favorite Rem WinRar
A: Add a specified file (source directory, here is "% userprofile% / favorites) and folder to the compressed file (the target file, here is" D: / My Documents / Favorites.exe ").
-as: This is a switch, which means that the way is "synchronous compression file content"
-r: means "containing subfolders"
-sfx: It is a self-extracting file that is established.
-zsfxpara.txt: Read the compressed file annotation from the file sfxpara.txt, what is the use of the note?
-EP1: Indicates that the path% UserProfile% is not saved in the compressed file
2. Comment file role
When you build a compressed file, you don't just consider compressing those files, and how to decompress it. You can pass a lot of useful information to the compressed package by comment files.
Sfxpara.txt content:
Path =% UserProfile% / Silent = 1
PATH: Unzip path
Silent = 1: Do not open the user interface
3. Section
It may be very troublesome when establishing such a BAT, because it is necessary to check the manual, but once it is established, it is always for all. It turns out that it is another way to rehabilitate and choose a path. Now, just double-click this BAT, it will be done. When you are restored, you can do it as soon as you do it. In fact, the command line can fully realize all the features of the GUI, hoping that this article can play the role of tile jade.