shredder Posted July 18, 2017 Posted July 18, 2017 Greetings - Normally i would just try to figure this stuff out on my own, but I have found that it is just easier to reach out for help. I'm trying to get my Sega CD bin/cue's organized into compressed archives. I used to have a utility that would take the files out of the directory, zip them, place in a separate directory and name them properly. I can't seem to find that utility. I did this manually with a few, but it's going to take ages and I don't really want to spend the time on it. I've included screenshots to help illustrate what I'm trying to accomplish.Can someone else guide me to a quicker solution? How it is now(_zipped folder is ones that i have done manually): Here is what the result is in each of the subfolders: Here is how i want it to be, I do not want the folders included, only the files:
badboo Posted July 18, 2017 Posted July 18, 2017 You will need a batch that can do that for you. I think I did this a while ago too. Let me see where I got the batch.
badboo Posted July 18, 2017 Posted July 18, 2017 Found it: On that thread find this: BatchFolder2zip.bat If I am not wrong, that should do the work for you. Do a test before doing it.... this will save you a lot of time
shredder Posted July 18, 2017 Author Posted July 18, 2017 I made the batchfolder2zip file and created a test folder. I can tell the batch file ran due to the blip of code in a command prompt that popped up for a split second, but i don't see any changes. I do have 7zip installed. Can you tell me what I might be doing wrong?
badboo Posted July 18, 2017 Posted July 18, 2017 2 minutes ago, shredder said: I made the batchfolder2zip file and created a test folder. I can tell the batch file ran due to the blip of code in a command prompt that popped up for a split second, but i don't see any changes. I do have 7zip installed. Can you tell me what I might be doing wrong? Probably you will have to check where you have installed 7zip. for /d %%X in (*) do "C:\Program Files (x86)\7-Zip\7z.exe" a "%%X.zip" "./%%X/*" change c:/program files...... location for 7zip to yours. Edit, save and try again.
shredder Posted July 18, 2017 Author Posted July 18, 2017 5 minutes ago, badboo said: Probably you will have to check where you have installed 7zip. for /d %%X in (*) do "C:\Program Files (x86)\7-Zip\7z.exe" a "%%X.zip" "./%%X/*" change c:/program files...... location for 7zip to yours. Edit, save and try again. yes, that was the issue. My 7zip was located at "C:\Program Files". *NOTE I was attempting to do this on a nas, which i found will not work. I had to copy the files off the nas, run the script, and copy back. (I am happy to do this since it worked) **NOTE DO NOT RUN THIS BATCH AS ADMIN, I cant speak for every instance, but i did it once and got a scary result (i.e. compressing drivers folders and such, not sure why) Running normally worked fine. Thank you so much @badboo for the help, this was simple and easy and I think i had been looking for batches like this for a long time.
badboo Posted July 18, 2017 Posted July 18, 2017 @shredder glad to hear it worked for you.... and thanks for the notes too.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.