MicrostockGroup Sponsors


Author Topic: Script or similar to zip files based on file names  (Read 3570 times)

0 Members and 1 Guest are viewing this topic.

Microbius

« on: August 30, 2011, 05:27 »
0
I am looking for a way of automating the following:
I have folders of illustrations each one as a jpeg file and also as an eps file. The two files for each illustration share the same name apart from the extension.
Is there an automated way of getting Windows to zip the pairs together in one zip file each.
It's proving to be very time consuming going through the folders and doing this by hand.


microstockphoto.co.uk

« Reply #1 on: August 30, 2011, 06:35 »
0
I had the same problem... not a completely automated solution but the best I found:

from the dos command line:

c:\>dir /s /b *.eps >c:\filename.bat

(/s lists subdirectories; /b outputs file name only without headers; >filename.bat sends output to file)

open c:\filename.bat with a text editor and replace text in each line
in order to replace <filename>.eps with pkzip <filename>.* <filename>.zip
you may have to do this part manually through copy and past but it's still faster

put pkzip.exe in the same folder (you need an old command line version of PkZip)

launch filename.bat

seems a bit crooked but saves time in the end
« Last Edit: August 30, 2011, 06:40 by microstockphoto.co.uk »

Microbius

« Reply #2 on: August 30, 2011, 09:20 »
0
Thanks Claudio but I fear the dos prompt! Your post is going to get a heart anyhow for taking the time to post.

microstockphoto.co.uk

« Reply #3 on: August 30, 2011, 09:30 »
0
yes, the dos prompt can be scary but it's so cool!


 

Related Topics

  Subject / Started by Replies Last post
7 Replies
2708 Views
Last post October 29, 2012, 19:59
by madelaide
6 Replies
2170 Views
Last post April 23, 2013, 23:39
by jeancliclac
7 Replies
7977 Views
Last post September 09, 2013, 07:38
by Canonbabe
20 Replies
13825 Views
Last post November 23, 2021, 03:52
by dacascas
4 Replies
2885 Views
Last post July 01, 2019, 05:23
by notaslave

Sponsors

Mega Bundle of 5,900+ Professional Lightroom Presets

Microstock Poll Results

Sponsors

3100 Posing Cards Bundle