ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

A software for compress file and able to find them first

<< < (3/4) > >>

Contro:
So, combining the line I provided with the work by daddydave:
Put rar.exe into somewhere accessible such as the windows folder, and then use this as a batch file:


--- ---setlocal
set oldcd=%cd%
for /R %%D in (.) do (
 cd "%%D"
 for %%1 in (*.txt) do rar m -x*.rar -m5 "%%1.rar" "%%1"
)
cd /d %oldcd%
endlocal

Run it in the top folder where you want the compression to happen. Don't run it at your root folder or some system files which should remain txt will be compressed as well. That would be asking for trouble.
-eleman (August 01, 2012, 07:07 AM)
--- End quote ---

Going to study.

It seems that all txt file go compressed.

Contro:
Just now I did this (I have Locate32 and HAOzip installed, I think any archiver would probably do)


* Brought up Locate32 (I can bring it up using Win-F on my system)
* Did a search for .py (Python) files
* Selected a dozen files from the search results.
* Right clicked on the selected results
* Clicked HaoZip > Add to archive (Note: the Windows Explorer right click menu is replicated in Locate32)
* Clicked Browse and browsed to the Desktop
* Gave the filename Test.zip and hit OK.
* Opened the file Test.zip from the desktop and there were all the files I selected.
Is that something like what you need? (Re-reading the original post, I guess you are needing something more automated. It is a little more GUI, though. ;) )

-daddydave (August 01, 2012, 06:27 AM)
--- End quote ---

Not very automated.
And the zip is only one. I would like any file individually packed to the corresponding zip or rar.

 :-*

Contro:
ull search power of your chosen tool
-daddydave (August 01, 2012, 06:54 AM)
--- End quote ---

better full search power of your chosen tool of course, but any limited solution is good too because  i need to do this task now and manually is very boring.

 :P

skwire:
Do you already have a text listing of the files you want compressed?  As in, something like this:

c:\path\abc.txt
c:\another\path\def.txt
c:\more\stuff\ghi.txt

Contro:
Do you already have a text listing of the files you want compressed?  As in, something like this:

c:\path\abc.txt
c:\another\path\def.txt
c:\more\stuff\ghi.txt


-skwire (August 01, 2012, 10:07 AM)
--- End quote ---

Skwire sounds me as something I must have. But...  :-[

How can I obtain the txt file listing ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version