.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   OT: Archive Utilities (http://forum.shrapnelgames.com/showthread.php?t=22532)

Fyron January 26th, 2005 01:17 AM

OT: Archive Utilities
 
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

Re: OT: Archive Utilities
 
Rar it from the commandline?

Rar text.rar -a *.txt
...or somesuch...

douglas January 26th, 2005 01:53 AM

Re: OT: Archive Utilities
 
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

Re: OT: Archive Utilities
 
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

Re: OT: Archive Utilities
 
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

Re: OT: Archive Utilities
 
Quote:

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.


All times are GMT -4. The time now is 12:38 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.