Help the PSP 3D community grow! Vote for us below:


| | Off Topic - Topics not of/relating to the PSP. |
Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!
You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.
Registration is fast, simple, and absolutely free so join our community today!
| 
03-28-2007, 11:51 AM
| | Moderator / Pastafarian
My Mood: | | Join Date: Jan 2006 Location: sda1:/sys/kernel
Posts: 2,422
Points: 354.51 Donate | | | Need a good batch compression program I'll make this short. I'm looking for a Windows app that can batch compress many files into the 7-Zip format (.7z), but I want it to make a new archive for each file and name it accordingly. I was wondering if anyone here knows of such a program? Thanks in advance for the help!
EDIT: 250 points go to the first user who mentions a good program!
Last edited by dorkdork777 : 03-28-2007 at 12:26 PM.
| 
03-28-2007, 05:12 PM
| | Senior Member
My Mood: | | Join Date: Oct 2006 Location: Here.
Posts: 358
Points: 10.47 Donate | | Sure, I feel like giving it a go.
First of all, whenever I look for freeware that is small, easy to use, and doesnt require installation, I normally turn to tinyapps.
From them, I would suggest: 7zip 3.12 (Command Line Version) [291k] . (Page here)
That lets you zip and unzip... the rest you can just build into a batch file.
If you don't/can't do that, let me work on it after I turn in these programs. | 
03-29-2007, 11:02 AM
| | Moderator / Pastafarian
My Mood: | | Join Date: Jan 2006 Location: sda1:/sys/kernel
Posts: 2,422
Points: 354.51 Donate | | | If you could make the batch file, that would be great! TYVM! Will you accept 500 points for the effort?
(Just one more thing, and this is me being really picky, but could you make it so it compresses them in the Maximum compression level?) | 
03-29-2007, 03:27 PM
| | Senior Member
My Mood: | | Join Date: Oct 2006 Location: Here.
Posts: 358
Points: 10.47 Donate | | | I am almost done, and GUESS WHAT!
I found out how to get your program's CURRENT DIRECTORY!
Since argument %0 will always be the FULL path to your bat file, %0\.. is the folder that bat is in!
So if you wanted to change to the folder running your program, you can type:
cd %0\..
^_^ This means my program will be a LOT more stable. | 
03-29-2007, 04:07 PM
| | Moderator / Pastafarian
My Mood: | | Join Date: Jan 2006 Location: sda1:/sys/kernel
Posts: 2,422
Points: 354.51 Donate | | TYVM! It will be much appreciated - it's taking forever to compress all these files one by one.  500 points will be coming your way as soon as you release it.  | 
03-29-2007, 05:08 PM
| | Senior Member
My Mood: | | Join Date: Oct 2006 Location: Here.
Posts: 358
Points: 10.47 Donate | | Ok, I am done testing.
Here is how to use it: 1. Unzip this somewhere. 2. Either drag the folder onto the "BatchZip.bat" file, or start "BatchZip.bat" from the command line. 3.a. If you dragged the folder, it does the rest. 3.b. If you start it from the command line, you can do the following:
0. If you type /?, you will get a list of what the program can do.
I. if you type /d it will date each file with the current date/time
^_^ This is useful for backups.
II. if you type /c and then a number, for example "BatchZip /c 0", it will change the compression level from 9 to 0, which is larger but faster.
III. if you type /t and then zip, rar, etc, it will save that format instead of 7zip. On a side note, you might need to change compression levels also if you do this.
All files will be zipped in the same folder that they exist.
Also, you can have it work on several directories: for example,
C:\test\BatchZip C:\Files1 F:\temp G:\ "C:\Program Files"
would zip every file in each folder.
Hope it is what you need.
{my readme:} Quote: The below is data I built into the batch program.
You can access it by typing "BatchZip /?" into the command line.
^_^ Hope you like it!
OH, and you can drag/drop folders onto the BAT if you want to,
or just double click it to have it zip all files in the same
folder as it.
And as always, please keep "CoreData" in the same folder as BatchZip.
This Batch program was made by Donald Mason-Smith
AKA, TheAceOfFire
Just give it a list of the folders, and it will save
each file in that folder as a 7zip file.
Optional commands:
/d ~ date your zip files
/t [type] ~ Type of compressed file [7z default]
~ Other options: [zip,rar,cab,gzip,bzip2,tar,etc]
/c [level] ~ Level of compression [9 default, slow].
~ 7z can handle 0,1,5,7,9
~ Zip can handle 0,5,9
The level of compression can be changed by editing
BatchZip.bat's top few data variables.
Examples of Use:
BatchZip.bat C:\Temp . E:\folder\Folder
BatchZip C:\ D:\Temp F:\here
Examples of Use with Date Stamping:
BatchZip.bat /d relativeFolderToCompress
BatchZip.bat /d ..\..\relativeFolderToCompress
BatchZip /d C:\Temp
BatchZip /d C:\ D:\Temp F:\here
Examples of Use with custom Compression:
BatchZip.bat /c 0 relativeFolderToCompress
BatchZip.bat /c 5 ..\..\relativeFolderToCompress
BatchZip /c 9 C:\Temp
BatchZip /c 1 C:\ D:\Temp F:\here
Examples of Use with custom Type:
BatchZip.bat /t zip relativeFolderToCompress
BatchZip.bat /t rar ..\..\relativeFolderToCompress
BatchZip /t gzip C:\Temp
BatchZip /t tar 1 C:\ D:\Temp F:\here
Examples of Use with all 3:
BatchZip.bat /d /c 5 /t zip relativeFolderToCompress
BatchZip.bat /c 5 /d /t rar ..\relativeFolderToCompress
BatchZip /c 5 /t gzip /d C:\Temp
BatchZip /t tar /c 5 /d tar 1 C:\ D:\Temp F:\here | Sorry for the rapidshare link, my favorite upload site is down right now. BatchZip.zip
And don't worry about the points, I don't mind helping out someone who helped me.
Last edited by theaceoffire : 03-29-2007 at 05:28 PM.
| 
03-30-2007, 11:33 AM
| | Moderator / Pastafarian
My Mood: | | Join Date: Jan 2006 Location: sda1:/sys/kernel
Posts: 2,422
Points: 354.51 Donate | | TYVM! Using it now... 500 points coming your way, no matter how much you say you don't need them!
Only one very minor problem, which is that it doesn't come with a handy batch file that asks you what you want. This is OK for me, but it might not be for other readers of this thread.
I've made a simple and pretty rubbish one, but I found it works OK. To use it, make a new text document next to BatchZip.bat, and call it anything.bat, where anything can be whatever you want. Then, right-click on it, select Edit, and copy this into the window that comes up: Code: @echo off
echo:This batch file by dorkdork777 is built to complement TheAceOfFire's
echo:awesome BatchZip program.
SET /P cfrmt="What file format would you like to compress in? [7z/zip]"
SET /P clvl="What compression level would you like to compress at? [0/1/5/7/9]"
BatchZip.bat /c %clvl% /t %cfrmt% I'm sure theaceoffire would be able to come up with a much better one if he wanted to though. Anyway, put the files you want to compress next to the two batch files, and double-click the batch file you just created. Hopefully, it'll work.
Last edited by dorkdork777 : 03-30-2007 at 11:38 AM.
| 
03-30-2007, 02:02 PM
| | Senior Member
My Mood: | | Join Date: Oct 2006 Location: Here.
Posts: 358
Points: 10.47 Donate | | | ^_^ Yeah, I thought about asking for those, but you did ask for command line.
If you change NOTHING and drag the folder onto the bat, it does it with the settings you ask for.
It also works if you place it in the folder and click it (Although it will zip itself as well)
O.o however, I bet I could set it up to be silent if I routed all output to a log instead of the screen...
^_^ I might work on it a bit later.
The important part: You can pass my program SEVERAL folders, and it will go to each one and work on it. | 
03-30-2007, 02:16 PM
| | Moderator / Pastafarian
My Mood: | | Join Date: Jan 2006 Location: sda1:/sys/kernel
Posts: 2,422
Points: 354.51 Donate | | | Yep. I completely know what you're talking about. I'm not baffled at all.
(I've sent you the 500 points in 5 payments of 100, as it didn't let me send them all at once for some reason.) | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off Points Per Thread View: 0.00 Points Per Thread: 1.00 Points Per Reply: 0.10 | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Subworld 34: Merry Xmas! | theaceoffire | Off Topic | 11 | 12-17-2006 07:39 AM | | Beginner FAQ Sheet | Birdman1 | Getting Started/Help/Tutorials | 42 | 11-05-2006 01:53 AM | | |