View Full Version : OT: Archive Utilities
Fyron
January 26th, 2005, 01:17 AM
Anyone know of a good (free) archiving program that I could use to archive only the *.txt files in a specified folder (and all subfolders) automatically, without having to manually delete non *.txt files after making the archive? Preferably it would be able to create the files in RAR format rather than crappy ZIP or some arcane format...
Suicide Junkie
January 26th, 2005, 01:49 AM
Rar it from the commandline?
Rar text.rar -a *.txt
...or somesuch...
douglas
January 26th, 2005, 01:53 AM
WinRar can do this. Right-click the folder you want to archive, and select "Add to archive..." Go to the files tab, and in the "Files to add" field, append "\*.txt" to the path of the folder, without the quotes. Set any other options you want, and click ok.
Fyron
January 26th, 2005, 05:13 AM
WinRar does not save the folder properly... If I use such a file string:
"C:\blah\dummy\*.txt" "C:\blah\dummy\*.html"
The archive created will not include the "dummy" folder, but only the folders and files inside it. This behavior is wrong (especially compared to how WinRar normally would include the dummy folder if I did not play around with the files string...) and extremely annoying.
boran_blok
January 26th, 2005, 06:50 AM
see the winrar help, it can definetly do this, work with include and exclude filed, I use winrar for all my backups
Example include file:
<blockquote>D:\My Documents\School\*.*
D:\Cobol\*.*</blockquote>
With the corresponding exclude file:
<blockquote>D:\My Documents\School\archief
D:\My Documents\School\Java\Oefeningen\*.class
D:\My Documents\School\Temp working directory
D:\Cobol\*.exe
D:\Cobol\*.OBJ
D:\My Documents\School\OOAD\*.pdf</blockquote>
douglas
January 26th, 2005, 10:30 AM
Imperator Fyron said:
WinRar does not save the folder properly... If I use such a file string:
"C:\blah\dummy\*.txt" "C:\blah\dummy\*.html"
The archive created will not include the "dummy" folder, but only the folders and files inside it. This behavior is wrong (especially compared to how WinRar normally would include the dummy folder if I did not play around with the files string...) and extremely annoying.
So start one level up and use the files to exclude field. Even with a huge amount of stuff in the superfolder, it can all be excluded quickly with the append button, ctrl-A for select all, and ctrl-click to deselect the folder you want.
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.