This solution would not open a console window because of WinRAR.exe is a Windows GUI desktop application. This task could be also done with WinRAR.exe using a profile created before with starting WinRAR.exe with the profile name as only option on the command line stored in a shortcut file. Open text file Rar.rxt in program files folder of WinRAR with a double click which is the manual of Rar.exe explaining the command a and the switches used here. Open a command prompt window, run for /? and read the output help explaining option /D (directory search). The name of the compressed subdirectory with its path is not added to the RAR archive file ( -ep1 and folder to compress ends with a backslash). If you find this on your computer, it may have been installed by someone else, or come. The standard configuration is ignored ( -cfg-) on compression. Rather, it is an application for copying files into a compressed archive. rar created in the specified directory N:\working using best compression ( -m5) without any output to console window and ignoring all errors ( -inul) which could occur during folder compression. Rar.exe adds ( a) recursively ( -r) all directories and files in the subdirectory found by FOR to a RAR archive file with name of the current subdirectory and file extension. left to Rar.exe with full qualified file name is removed to see the command line output by cmd.exe when a new archive file creation starts.įOR searches in specified directory N:\working for non-hidden subdirectories and assigns the full qualified directory name to loop variable I before executing Rar.exe for this subdirectory. There is no left to for as that would be completely useless on running this command line in a command prompt window. The same command line for usage in a command prompt window without using a batch file: for /D %I in ("N:\working\*") do "%ProgramFiles%\WinRAR\Rar.exe" a -cfg-ep1 -inul -m5 -r - "%I.rar" "%I\" Launch the WinRar app and click on the faulty file. This tool is effective and can unzip just about any file. D %%I in ("N:\working\*") do a -cfg-ep1 -inul -m5 -r - "%%I.rar" "%%I\" If WinRar keeps returning the archive is either in an unknown format or a damaged message, you should use the built-in file decompressor. This can be done in either of (at least) three ways. That task can be done with a batch file containing only a single command line. First you need to make sure that you let the command line interpreter know where winrar.exe is.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |