× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



adding on...I use the following to add new files to an existing zip file then remove them

cd /my directory
ajar -a all-zip.zip work*.xls && rm work*.xls

Bryan



Barron, Jeff via MIDRANGE-L wrote on 2/17/2021 8:19 AM:
Alan,

Alexei's example below has worked well for me.

STRQSH CMD('cd /directory1/sub-directory2/sub-directory3/sub-directory4/sub-directory5/ && jar cfM 20210216_141530_BOL.zip *.pdf')

cd changes the directory (duh) and the && allows the jar command to run after the cd command. Voila, you've got a zip file that's not buried in directories.



-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Alan Shore via MIDRANGE-L
Sent: Tuesday, February 16, 2021 3:19 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: Alan Shore <ashore@xxxxxxxx>; John Rusling <JRusling@xxxxxxxxxxx>
Subject: [External] RE: Problem with compressing a number of pdf's into a zip file

Thanks for the reply John
Let me investigate that

Alan Shore
Solutions Architect
IT Supply Chain Execution

[cid:image001.png@01D7047F.682FA6B0]

60 Orville Drive
Bohemia, NY 11716
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
E-mail : ASHORE@xxxxxxxxxxxxxxxxxxxx

'If you're going through hell, keep going.'
Winston Churchill

From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of John Rusling via MIDRANGE-L
Sent: Tuesday, February 16, 2021 4:16 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: John Rusling <JRusling@xxxxxxxxxxx>
Subject: [EXTERNAL] Re: Problem with compressing a number of pdf's into a zip file

This may or may not be much help. I ran across this, this spring for a project and I used zip, not jar or COPYTOARC.
The below 2 lines was in my notes on it -

--this gets files w/o the folders structure zip -j /tmp/myzip20.zip /tmp/mydir/*

That's really all I can tell you, I'm no zip guru.

. . .mileage may vary...
John
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444681174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Yjl9UzHwyiRRBWDw8Sy0t3vMWXjjqghMcmV8P2kbIS0%3D&amp;reserved=0<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444681174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Yjl9UzHwyiRRBWDw8Sy0t3vMWXjjqghMcmV8P2kbIS0%3D&amp;reserved=0>
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives at https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444681174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=iBWnOMzpBHCyZJ03FDKf4vxk80QFYyYFrOYl6JPpRPI%3D&amp;reserved=0<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444681174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=iBWnOMzpBHCyZJ03FDKf4vxk80QFYyYFrOYl6JPpRPI%3D&amp;reserved=0>.

Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444681174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=a8JhIsguJsW89PI6n92mzSFnebQ0xc2Vs%2F%2F%2BrDUHTxs%3D&amp;reserved=0<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444681174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=a8JhIsguJsW89PI6n92mzSFnebQ0xc2Vs%2F%2F%2BrDUHTxs%3D&amp;reserved=0>



The Nature's Bounty Co. is now The Bountiful Company! Our email address will be changing from @nbty.com to @bountifulcompany.com. Please update your email address book so that important communications are not interrupted.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fmidrange-l&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444681174%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Yjl9UzHwyiRRBWDw8Sy0t3vMWXjjqghMcmV8P2kbIS0%3D&amp;reserved=0
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fmidrange-l&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444691170%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=cn4hgHF%2FTxXL%2Bnz5kO4Y1xT1GoYtciIYup72jvWD7yY%3D&amp;reserved=0.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Famazon.midrange.com%2F&amp;data=04%7C01%7C%7C7668719dd9da40554eb208d8d2c07c05%7C0091f9018eb949ada4133bd58cb1aff0%7C0%7C0%7C637491071444691170%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=sUnThYy0JjKKOwG6dJmOpZ6GSGz1IiNJA0PC6NDzPwM%3D&amp;reserved=0


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.