I create an archive using the following command:
rar a -s -m5 -mc0:0t+ 1.rar arch
This folder contains the file 1234.txt. I need to create a bat command in order to find out the size of the compressed file '1234.txt' in the archive '1.rar'.
Team
rar v 1.rar
Produces the following result:
If you do a breakdown into tokens, then the first one should correspond to Pathname / Comment, and the third one should be Packed. But request
for /f "tokens=1,3" %%x in ('rar v 1.rar') do if "%%y"=="1234.txt" echo %%x
gives:
Maybe someone knows how to solve this problem?
rar v archivename.rar | find "new_filename"
rar v archivename.rar | find "new_filename"
- Akinav
. See above. For more details, seerar /?
. - Akina