× 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.



Yeah, I used the wrong syntax for "everything in this folder".  If your files all have extensions then *.* works, but if you don't have extensions it won't.  I had file1.txt and file2.txt, so it worked for me.  :)  The better method is to use the single dot syntax (even though that's just not intuitive to an old DOS/green screen guy like me).

On 12/5/2018 9:59 AM, Vernon Hamberg wrote:
Joe

The OP mentioned the manifest file - he did not know that the -M option will suppress that, as you show in your example.

Which I tried - it gave me an empty ZIP file. The *.* was the problem.

Either of these commands worked for me, after doing the  -

jar -çfM ./my.zip ./*

jar -cfM ./my.zip .

Now it is also possible to specify the directory to change to just while the command is executed, so this works, but you have to specify the full path to the ZIP file, since the internal CD is not in effect when the command is first called -

jar -cfM /myf/g/wrk/l1.zip -C /myf/g/wrk

Regards
Vern.

On 12/5/2018 8:23 AM, Joe Pluta wrote:
Hi Gio!

The jar command is a Unix-y thing and is a little finicky.  How it works depends on what your current directory is.  The way to do what you want requires changing your current directory:

cd /myf/g/wrk
jar -cfM ./my.zip ./*.*

That should do it!


On 12/3/2018 1:13 PM, gio.cot via MIDRANGE-L wrote:
Hi all

I would need to zip all files inside ans Ifs folder and get one zip so that
when extract it , i see only the files and not also the folder that contains
my files


Example: if i run  "jar -cf /myf/g/wrk/my.zip  /myf/g/wrk/*

Inside wrk, i have

File1

File2


When i estract the zipped file , i  see before MYF and META-INF folder, if i
click on myf i see G folder , and then i see WRK folder and for the last i
see my files ..  i would see directcly file1 and file2


How can i do it ?


Thanks





---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus





As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.