开发者

Rubyzip - possible to set extraction folder?

开发者 https://www.devze.com 2022-12-26 09:14 出处:网络
My problem is that I need to set the root extraction folder for a zip-file I\'m generating by using Rubyzip. The zip-file will be opened in Windows as sel开发者_StackOverflowf-extractable. Is this opt

My problem is that I need to set the root extraction folder for a zip-file I'm generating by using Rubyzip. The zip-file will be opened in Windows as sel开发者_StackOverflowf-extractable. Is this option available in Rubyzip? Or is this a value that is stored in the Windows registry and used by the integrated zip-functionality in Windows?


Looks like you will face another problem, as RubyZip itself doesn't make self-extractable archives.

There are possibilities to combine a zip-extractor binary with your archived data into extractable .exe. And I guess there are no zip-extractors to hold default path for extraction destination, as there is dialog prompting for.

Have a look, this thread can help http://groups.google.com/group/brighton-ruby/browse_thread/thread/89b2e9ac4dfbed3b?pli=1

Regards, bv

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号