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

DonationCoder.com Software > Post New Requests Here

IDEA: zip all main sub-folders at once

<< < (2/4) > >>

jity2:
Thanks Mouser for the fast reply. I appreciated. ;)
It seemed to worked once, the files in my subfolders were zipped, but not the subfolders.
Then it stopped working the next time!
Maybe it is me or that it is too late for me now! ;(
Thanks again ;)

f0dder:
Jity2, you might need some command-line argument to your compressor to make it include subfolders.

Anyway, it should be a relatively trivial task to do what ou want; one of the AutoHotKey people could probably do it insanely fast :)

jity2:
Dear all,

I finally found a solution. ;-)

After trying for 2 hours I gave up PCAL (too simple zip program contrary to Powerarchiver after reading their forum) with Drag and Drop Robot (sorry Mouser the command lines even after your great help were too complex for me)!

Thanks to f0dder, I tried to use the great shareware MacroMagic instead (with Powerarchiver).
I joining the macros I have created (in total this simple thing took me around 3 hours as there were a lot of simple tricks to use).
First download the joined txt files, rename them into ".key". Load them into MacroMagic.
Now all is working ok you just have to be inside your main folder, count manually the number of folders to zip, make the change in "zip_main_folders_Add_here_inside_N-1_repeat.key".
Example: in total you have 8 folders, so you have to change this key "zip_main_folders_Add_here_inside_N-1_repeat.key" into 7 repeats (=8-1).  Then go into your main folder and I am using the keyboard keys CTRL + ALT + O to do the job.  ;-)

Thanks again. ;-)
See ya
Jity

wr975:
It's no right-click solution, but works fine without need to count folders or change a macro. Perhaps you'll like it.


See attachment to this post for a compiled exe

or

1. Save the code as "whatever.ahk" script file
2. Download and install Autohotkey (freeware), then you can double click the script



--- ---FileSelectFolder,SourcePath,,0,Select Source Folder
If SourcePath =
ExitApp

FileSelectFolder,TargetPath,*%SourcePath%,0,Select Target Folder
If TargetPath =
ExitApp

Loop,%SourcePath%\*.*,2,0
RunWait,c:\PACL\PACOMP.exe -a -r -p "%TargetPath%\%A_LoopFileName%.zip" "%A_LoopFileFullPath%\*.*"

Just for information: PACOMP won't add empty folders (folders without files). So if you test it with empty folders, don't be surprised if it won't work.

jity2:
Thank you Wr975. Your help is much appreciated. ;)

Alas as I wrote I prefer not to use PCAL afterall. I prefer to be sure of what my zip program does, so I continue to use Powerarchiver (which I have tested a lot for my data).
Futhermore my process also can handle the empty folders, i.e., zipping nothing! ;)

The big difference for me is the handling of accents (I am french!) so "é" does not become "Û"!

Anyway I have tried your suggestion (BTW, I could not download your compiled exe file maybe because it is an exe file forbideen on this forum, but I followed your guidelines and it worked ok).
Here is the comparison :

It seems to me that your script is faster (maybe 20% rought guess) to do the compressing job.

But mine may be better handling odds files and caracters (accents) contained inside small html folders I guess : see the slight size difference (see attached image) at the end.

Thanks again, ;)
See ya,
Jity

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version