Call the WinRAR program to compress the operation

xiaoxiao2021-03-06  87

WinRar EE: /RARFILE.RAR E: / 'EXTRACT RAR FILEWINRAR AE: / MYDIR E: /' Add RAR FileSystem.disnogic.process can be used to start a new process, and can be parameters when starting new processes .for exp: Order = "a" & newname & "" & filename Dim ps As System.Diagnostics.Process ps = New System.Diagnostics.Process ps.EnableRaisingEvents = False Dim rarfile As FileInfo = New FileInfo (RarName) If rarfile.Exists Then RARFILE.DELETE () LOG (RARST) PS.Start ("RAR.exe", Order) ps.createnowindow = True'cmd window does not appear '================== ============================ Dim ORDER AS STRING DIM RARNAME AS STRING DIM FILENAME AS STRING FILENAME = "Log.txt" RarName = " 2.rar "order =" a "& rarname & Space (1) & filename Dim info As New ProcessStartInfo (" rar.exe ") info.WindowStyle = ProcessWindowStyle.Hidden info.Arguments = order Process.Start (info) '= ============================================= ======= shell ("C: / Program Files / WinRAR / WinRar.exe, AppWinsTyle.Nor Malfocus)

In WinRar's directory, there is a program called Rar.exe. You only need to start this program to bring the correct parameters. Rar .rar.exe parameters.

USAGE: RAR - - <@listfiles ...> a add files to archive c add archive comment cf add files comment cw Write archive comment to file d Delete files from archive e Extract files to current directory f Freshen files in archive i [par] = Find string in archives k Lock archive l [t, b] List archive [technical, bare] m [f] Move to archive [files only] p Print file to stdout r Repair archive rc Reconstruct missing volumes rn Rename archived files rr [N] Add data recovery record rv [N] Create recovery volumes s [name | -] Convert Archive To or from sfx t test archive v [t, b] verbosely list archive [technical, bare] x extract files with f ULL PATH

- Stop switches scanning ac Clear Archive attribute after compression or extraction ad Append archive name to destination path ag [format] Generate archive name using the current date ao Add files with Archive attribute set ap Set path inside archive as Synchronize archive contents av Put authenticity verification (registered versions only) av- Disable authenticity verification check c- Disable comments show cfg- Disable read configuration cl Convert names to lower case cu Convert names to upper case df Delete files after archiving dh Open shared files ds Disable Name Sort for Solid Archive E Set File Exclude Attributes Ed Do Not Add 'end of Archive' Block EP EXCLUDE PATHS from Names EP1 Exclude Base Direct ory from names ep2 Expand paths to full ep3 Expand paths to full including the drive letter f Freshen files hp [password] Encrypt both file data and headers idp Disable percentage display ieml [addr] Send archive by email ierr Send all messages to stderr ilog [ name] Log errors to file (registered versions only) inul Disable all messages ioff Turn PC off after completing an operation isnd Enable sound k Lock archive kb Keep broken extracted files m <0..5> Set compression level (0-store .. .3-Default ... 5-maximal) MC Set Advanced Compression Parameters MD

Dictionary size in KB (64,128,256,512,1024,2048,4096 or AG) ms [ext; ext] Specify file types to store o Overwrite existing files o- Do not overwrite existing files oc Set NTFS Compressed attribute os Save NTFS streams ow Save or restore file owner and group p [password] Set password p- Do not query password r Recurse subdirectories r0 Recurse subdirectories for wildcard names only rr [N] Add data recovery record rv [N] Create recovery volumes s [, v [- ], e] Create solid archive s- Disable solid archiving sfx [name] Create SFX archive si [name] Read data from standard input (stdin) t Test files after archiving ta Process files modified after in YYYYMMDDHHMMSS format TB process files modified before in yyyymmmddhhmms format tk Keep Original Archive Time TL Set Archive Time TO L ATEST FILE TN

转载请注明原文地址:https://www.9cbs.com/read-106027.html

New Post(0)