Put 2 files (same filename / different filename extension) together in a zip file

Post Reply
michaelatwork
Newbie
Posts: 2
Joined: Tue Dec 13, 2011 7:09 am

Put 2 files (same filename / different filename extension) together in a zip file

Post by michaelatwork »

Hi everybody, i need some help.



This is the situation.



Input folder (e.g.):

123.pdf

123.png

456.pdf

456.png

(etc.)



Now i want 123.pdf/123.png and 456.pdf/456.png, etc. in a zip file.



That is the wanted output:

123.zip (contains 123.pdf and 123.png)

456.zip

(etc.)



We use the power switch. Maybe a solution is possible with power switch onboard tools? The filenames have no scheme, but the filenames of the pdf and png are always the same (in pairs).



Thanks in advance.



Kind regards,

Michael


bert_vr
Newbie
Posts: 14
Joined: Mon Dec 12, 2011 3:45 pm

Put 2 files (same filename / different filename extension) together in a zip file

Post by bert_vr »

michaelatwork wrote: Hi everybody, i need some help.



This is the situation.



Input folder (e.g.):

123.pdf

123.png

456.pdf

456.png

(etc.)



Now i want 123.pdf/123.png and 456.pdf/456.png, etc. in a zip file.



That is the wanted output:

123.zip (contains 123.pdf and 123.png)

456.zip

(etc.)



We use the power switch. Maybe a solution is possible with power switch onboard tools? The filenames have no scheme, but the filenames of the pdf and png are always the same (in pairs).



Thanks in advance.



Kind regards,

Michael






Michael,



Use the Assemble job's File pattern scheme and fill out

*.pdf

*.png

In the job folder name use the variable Job.NameProper to make sure the zip file uses the file name from the two files in the folder.



bert
bert_vr
Newbie
Posts: 14
Joined: Mon Dec 12, 2011 3:45 pm

Put 2 files (same filename / different filename extension) together in a zip file

Post by bert_vr »

bert_vr wrote: [quote=michaelatwork]Hi everybody, i need some help.



This is the situation.



Input folder (e.g.):

123.pdf

123.png

456.pdf

456.png

(etc.)



Now i want 123.pdf/123.png and 456.pdf/456.png, etc. in a zip file.



That is the wanted output:

123.zip (contains 123.pdf and 123.png)

456.zip

(etc.)



We use the power switch. Maybe a solution is possible with power switch onboard tools? The filenames have no scheme, but the filenames of the pdf and png are always the same (in pairs).



Thanks in advance.



Kind regards,

Michael






Michael,



Use the Assemble job's File pattern scheme and fill out

*.pdf

*.png

In the job folder name use the variable Job.NameProper to make sure the zip file uses the file name from the two files in the folder.



bert


After this you can use the compress tool to create the zip.



bert
michaelatwork
Newbie
Posts: 2
Joined: Tue Dec 13, 2011 7:09 am

Put 2 files (same filename / different filename extension) together in a zip file

Post by michaelatwork »

Hi Bert,



it works fine, thank you.



Now, I'm happy :)



Kind regards,

Michael
Post Reply