shEiD Posted August 23, 2010 Posted August 23, 2010 (edited) Hi, Is there any way to get the file list from inside the .rar archive? I can't find nothing in winrar.chm, and google gave me nothing I need to check, if rar file contains only 1 file, if yes, I will store the "original" name in the database, and extract the file renaming it to my preference. The problem is, how the hell, do I get that stinkin file list from inside rar file? Please, help. Edited August 23, 2010 by shEiD
JFX Posted August 23, 2010 Posted August 23, 2010 You can use UnRaR.exe to make a list file UnRaR.exe lb "MyRaR archive.rar" > files.txt
water Posted August 23, 2010 Posted August 23, 2010 There is an UNRAR UDF available. Maybe it does what you need. My UDFs and Tutorials: Reveal hidden contents UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
shEiD Posted August 23, 2010 Author Posted August 23, 2010 On 8/23/2010 at 7:39 AM, 'JFX said: You can use UnRaR.exe to make a list fileUnRaR.exe lb "MyRaR archive.rar" > files.txt@JFX thank You, works like a charm. Wonder why there's nothing about this command in winrar's help? Strange and annoying... On 8/23/2010 at 7:47 AM, 'water said: There is an UNRAR UDF available. Maybe it does what you need.@water I had that UDF, but had completely forgot about it, though, methinks it is too old and crashes on this version of autoit, iirc. Thank You for reminding me, I will try to look into it.
mercuryDst Posted November 14, 2011 Posted November 14, 2011 hey guys i have a similar issue ,with a twist i want to list files in a rar which is itself inside a rar file then i want to delete files by reading the list files. any help would be highly appreciated thanks
joeshoe Posted March 7, 2013 Posted March 7, 2013 (edited) Thanks for the post. Saved me from having to spend any money on that ugly ass win95 looking gui called winrar. Don't mind setting up a bat file and using unrar.exe Is there any way to filter the results? Not a big deal, just might save a little bit of time Meaning, that I don't want .doc .dll license, readme removed from the myfiles.txt. It would just save me a few minutes of having to open in openoffice , do a find and replace/remove. Versus just open with notepad, have quite a few less results and just scroll through, instead of having to use find. Edited March 7, 2013 by joeshoe
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now