RAR VB MYRAR.RAR>C:/FILE.LST Output the file name with path in the compressed package to FILE.LST RAR LB MYRAR.RAR>c:/file.lst if you want to get the file in the compressed package with a path. L List all files in the compressed package and other information such as compression rate, etc., if only the output file Use the B variable for the name, use the T variable if you want more information, and use the V command K Lock the compressed package to prevent any attempt to change the compressed file command RAR IH=f0e0aeaeab2d83e3a9 -R e:/text Search for hexadecimal in all compressed packages in the E:/TEXT directory String f0 e0 ae ae ab 2d 83 e3 a9 RAR IC="First Level" -rc:/*.rar *.txt in the C:/*.RAR package Find the case-sensitive string "First Level" in *.txt (note the use of quotation marks when there are spaces) RAR II=boot.ini -r myrar.rar *.ini Find the BOOT.INI string in the INI files in all subdirectories of the MYRAR.RAR package in the current directory (actually in the package Find the string in the INI file, MYRAR.RAR can be changed to *.RAR means to find in all packages) RAR II=boot.ini -R myrar.rar in the current directory myrar.rar contains the case-insensitive search string boot. I search the specified string in the compressed package, support the optional parameter i is not case sensitive (default) c is case sensitive h ten Hexadecimal search t use ANSII UNICODE and OEM character table (only use WIN32) RAR D MYRAR delete all files in the compressed package MYRAR, actually delete the compressed package WINRAR RAR D MYRAR BOOT.INI Delete the BOOT.INI file from the compressed package MYRAR RAR A -ED MYARR C:/TEMP E:/01 F:/Same as above, just add multiple directories to In the compressed package and exclude empty directories,ĭ delete the specified file from the compressed file package RAR A -DF MYRAR C:/TEMP Add all files (including subdirectories) of the TEMP directory to MYRAR.RAR and delete the file RAR A MYRAR Compress the files according to the file list listed in BACK.LST (this function is sometimes useful to backup specified files) RAR MYRAR %WINDIR%/SYSTEM Add all files in the current directory (excluding subdirectories) to% In WINDIR%/SYSTEM/MYRAR.RAR, delete the files in the current directory at the same time BACKUP/MYRAR -AD %WINDIR%/IME/The situation is the same as above, except that the files in the subdirectories are not included when adding BACKUP/MYRAR -AD %WINDIR%/IME Add all files (including subdirectories) in the IME directory to MYRAR.RAR in the/BACKU/directory of the current directory, where the switch -AD can be omitted. Or without the -ag parameter, pass "%date:~0,4%%date:~5,2%% date:~8,2%" to obtain the time string,Ĭ:/dat/: the file directory to be backed up.įilename1: The name of the file to be compressed, which can be multiple or wildcard character file*Ī adds files to the compressed package, if the parameter A is omitted, it is also to add files, but the difference is to add the current path file to the specified path in addition, if the directory specified by -AD has/, it will not be added Files in subdirectories: rar: the path and base name of the backup (the -ag parameter will automatically add the current system time after bak), r: backup directories and subdirectories Ĭ:/bak. ag: when creating a compressed file, use the format "YYYYMMDDHHMMSS" appends the current date string, the file name bakYYYYMMDDHHMMSS.rar If winrar.exe is not in the default path, you need to specify the path, such as c:/Progra~1/winrar/winrar.exe. Winrar a -ag -ibck bak.rar filename1 filename2 Winrar.exe a -ag -k -r -s -ibck c:/bak.rar c:/dat/
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |