shEiD 0 Posted August 23, 2010 Share 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 Link to post Share on other sites
JFX 10 Posted August 23, 2010 Share Posted August 23, 2010 You can use UnRaR.exe to make a list file UnRaR.exe lb "MyRaR archive.rar" > files.txt Link to post Share on other sites
water 2,720 Posted August 23, 2010 Share Posted August 23, 2010 There is an UNRAR UDF available. Maybe it does what you need. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to post Share on other sites
shEiD 0 Posted August 23, 2010 Author Share Posted August 23, 2010 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...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. Link to post Share on other sites
mercuryDst 0 Posted November 14, 2011 Share 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 Link to post Share on other sites
joeshoe 0 Posted March 7, 2013 Share 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 Link to post Share on other sites
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