Hi Everyone,
I am trying to find a solution for handling zipped data without the
need to ship / install any DLL files with the database. Does anybody
know of code to handle ZIP files that does not require any external
references? If I can ship it 'built-in' as either a class module or
standard module then that would be perfect.
Any help would be greatly appreciated.
Cheers
The Frog
Nov 19 '07
36 3119
"Chuck Grimsby" <c.*******@worl dnet.att.net.in validwrote in message
news:8a******** *************** *********@4ax.c om...
On Wed, 21 Nov 2007 10:01:25 -0000, "Stuart McCall"
<sm*****@myunre albox.comwrote:
>>Although I've yet to find a way to copy individual files into the zip, other than creating a folder, copying the files into it, then specifying this as the source folder for the copy (which could be done transparently, but it's a bit kludgy).
To copy a individual file into the zip file via VBS, you just do:
<SNIP>
Thanks for that. I found this site: http://www.rondebruin.nl/windowsxpzip.htm#Code
has examples of all that. The one thing they don't demonstrate, which is
eluding me also (so far), is how to extract one file from a zip. The items
collection, although having a Count property, cannot be addressed either
with a numeric or text index:
oApp.NameSpace( ZipFileName).it ems(1)
oApp.NameSpace( ZipFileName).it ems("test.txt")
However, this works:
For Each item In oApp.NameSpace( ZipFileName).it ems
Debug.Print item
Next
Any idea how to address an individual item of the items collection?
Chuck Grimsby <c.*******@worl dnet.att.net.in validwrote:
>There's also the (Free and Open Source) 7-Zip: http://www.7-zip.org/
which has a built-in command line interface.
I much prefer a dll solution so I'll know if it's executed properly. Command line
doesn't thrill me.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
"Tony Toews [MVP]" <tt****@teluspl anet.netwrote in
news:57******** *************** *********@4ax.c om:
I much prefer a dll solution so I'll know if it's executed
properly. Command line doesn't thrill me.
But can't you redirect commandline output to a file and use that to
figure out what happened? Or use a batch file and DOS ErrorLevel?
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
"David W. Fenton" <XX*******@dfen ton.com.invalid wrote:
>I much prefer a dll solution so I'll know if it's executed properly. Command line doesn't thrill me.
But can't you redirect commandline output to a file and use that to figure out what happened? Or use a batch file and DOS ErrorLevel?
Sure, but again that's more work and more things to go wrong compared to a dll
solution which returns an error code.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
"Stuart McCall" <sm*****@myunre albox.comwrote in message
news:fi******** ***********@new s.demon.co.uk.. .
"Chuck Grimsby" <c.*******@worl dnet.att.net.in validwrote in message
news:8a******** *************** *********@4ax.c om...
>On Wed, 21 Nov 2007 10:01:25 -0000, "Stuart McCall" <sm*****@myunr ealbox.comwrote :
>>>Although I've yet to find a way to copy individual files into the zip, other than creating a folder, copying the files into it, then specifying this as the source folder for the copy (which could be done transparently, but it's a bit kludgy).
To copy a individual file into the zip file via VBS, you just do:
<SNIP>
Thanks for that. I found this site:
http://www.rondebruin.nl/windowsxpzip.htm#Code
has examples of all that. The one thing they don't demonstrate, which is
eluding me also (so far), is how to extract one file from a zip. The items
collection, although having a Count property, cannot be addressed either
with a numeric or text index:
oApp.NameSpace( ZipFileName).it ems(1)
oApp.NameSpace( ZipFileName).it ems("test.txt")
However, this works:
For Each item In oApp.NameSpace( ZipFileName).it ems
Debug.Print item
Next
Any idea how to address an individual item of the items collection?
Please ignore this question. I figured it out:
oApp.NameSpace( ZipFileName).it ems.Item(1)
or
oApp.NameSpace( ZipFileName).it ems.Item("test. txt")
"Tony Toews [MVP]" <tt****@teluspl anet.netwrote in
news:hq******** *************** *********@4ax.c om:
"David W. Fenton" <XX*******@dfen ton.com.invalid wrote:
>>I much prefer a dll solution so I'll know if it's executed properly. Command line doesn't thrill me.
But can't you redirect commandline output to a file and use that to figure out what happened? Or use a batch file and DOS ErrorLevel?
Sure, but again that's more work and more things to go wrong
compared to a dll solution which returns an error code.
But you have to have the DLL properly registered, which may not work
well for certain locked-down scenarios.
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
"David W. Fenton" <XX*******@dfen ton.com.invalid wrote:
>But you have to have the DLL properly registered, which may not work well for certain locked-down scenarios.
Not to my knowledge. So long as the DLL works in the same folder as the FE MDE you
should be just fine.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
It is interesting looking at the scripting options for this. Does
anyone know if there is a way to make use of a library from scripting
without having to register the dll? As David mentioned, it can be a
problem to register such things in heavily controlled environments,
and this is the case with where I work. There is also a problem with
different platforms so the WinXP scripting solution will only work on
a few machines.
As a secondary point, I would like to ask for some advice on the
possible creation of a 'zip' module / class module. The implementation
of such a thing could be quite useful, especially if you could
compress data sufficiently (eg with BLOB's) before stroing directly in
the database, not to mention the standard file handling stuff. If one
were to attempt such a thing, what would your considered opinions be
on the most useful implementation of such a thing? I was leaning
towards a class module with the necessary properties and methods to
handle things, but I considered that there might be an issue with
particularly large hunks of data, whereby it may be more efficient /
effective to simply use a function to return the results of the
desired compress / uncompress operation. Your thoughts would be
appreciated :-)
Cheers
The Frog
<REPOST - Dont know why it didnt show up properly....>
It is interesting looking at the scripting options for this. Does
anyone know if there is a way to make use of a library from scripting
without having to register the dll? As David mentioned, it can be a
problem to register such things in heavily controlled environments,
and this is the case with where I work. There is also a problem with
different platforms so the WinXP scripting solution will only work on
a few machines.
As a secondary point, I would like to ask for some advice on the
possible creation of a 'zip' module / class module. The
implementation
of such a thing could be quite useful, especially if you could
compress data sufficiently (eg with BLOB's) before stroing directly
in
the database, not to mention the standard file handling stuff. If one
were to attempt such a thing, what would your considered opinions be
on the most useful implementation of such a thing? I was leaning
towards a class module with the necessary properties and methods to
handle things, but I considered that there might be an issue with
particularly large hunks of data, whereby it may be more efficient /
effective to simply use a function to return the results of the
desired compress / uncompress operation. Your thoughts would be
appreciated :-)
Cheers
The Frog
Personally, I don't think you will be able to find a way to do this
without installing a dll or using pre-existing installed dlls that
will work on all windows platforms. The Zip functions didn't exist as
a part of the operating system (for example) until XP.
There are a number of pre-existing modules and class modules around to
handle WinZip-ing files. Feel free to use which ever one you want,
but those will require installing at least some version of WinZip.
I can't in all good conscious recommend storing compressed data in a
Access database. That sort of information (encrypted or not) is not
well suited to a database of any sort, though most will allow you to
do so. It just isn't a "good practice". It would not be fast or
efficient to do so.
Why are you trying to accomplish doing this? Knowing that, we might
be able to help you find an acceptable solution.
On Tue, 27 Nov 2007 01:07:19 -0800 (PST), The Frog
<Mr************ @googlemail.com wrote:
><REPOST - Dont know why it didnt show up properly....>
It is interesting looking at the scripting options for this. Does anyone know if there is a way to make use of a library from scripting without having to register the dll? As David mentioned, it can be a problem to register such things in heavily controlled environments, and this is the case with where I work. There is also a problem with different platforms so the WinXP scripting solution will only work on a few machines.
As a secondary point, I would like to ask for some advice on the possible creation of a 'zip' module / class module. The implementati on of such a thing could be quite useful, especially if you could compress data sufficiently (eg with BLOB's) before stroing directly in the database, not to mention the standard file handling stuff. If one were to attempt such a thing, what would your considered opinions be on the most useful implementation of such a thing? I was leaning towards a class module with the necessary properties and methods to handle things, but I considered that there might be an issue with particularly large hunks of data, whereby it may be more efficient / effective to simply use a function to return the results of the desired compress / uncompress operation. Your thoughts would be appreciated :-)
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robin Cull |
last post by:
Hi all,
I'm writing a script that needs to do lookups on the UNIX passwd and
groups file on textual usernames/group names and return numeric
UID/GID. Something that gives access to the C standard libarary
functions getent(), for example. I've Googled around on
various logical search terms and looked through pydoc and the module
reference but haven't found anything up to this point. I'd have
thought that the os module would provide...
|
by: Robert Rothenberg |
last post by:
I am working on a module that when given a CPAN distribution, will return
which modules the distribtion requires (by parsing the Makefile.PL using
Module::MakefilePL::Parse if the META.yml file is not available).
A companion module will actually try to fetch the distribution information
from CPAN (since it can query a .meta file if it exists before downloading an
entire distribution).
Because it is more closely tied to CPAN and works...
|
by: Steven T. Hatton |
last post by:
Some people have suggested the desire for code completion and refined
edit-time error detection are an indication of incompetence on the part of
the programmer who wants such features. Unfortunately these ad hominem
rhetorts are frequently introduced into purely technical discussions on the
feasibility of supporting such functionality in C++. That usually serves
to divert the discussion from the technical subject to a discussion of the...
|
by: Andrew Thompson |
last post by:
It seems most people get there JS off web sites, which is
entirely logical. But it is also a great pity since most
of that code is of such poor quality.
I was looking through the JS FAQ for any question that
identifies the warning signs to look out for, the things
that most easily and clearly identify the author of code
as something less than a master of the art.
I did not find an FAQ that answered it, but I think the FAQ
|
by: John |
last post by:
Hi
First of all apologies for posting so much code but this is rather involved
and I am totally stumped. Basically I have a main form (Staff Batch
SMS/E-Mail) which calls a function (SendSMS) in a module with in turn calls
a form (frmInet) which contains an ms internet control (Inet1). Problem is
that once the function Send SMS returns and the code tries to close the main
form a 'Runtime error 2486: You can't carry out this action at...
| |
by: TPJ |
last post by:
Help me please, because I really don't get it. I think it's some stupid
mistake I make, but I just can't find it. I have been thinking about it
for three days so far and I still haven't found any solution.
My code can be downloaded from here:
http://www.tprimke.net/konto/PyObject-problem.tar.bz2. There are some
scripts for GNU/Linux system (bash to be precise).
All you need to know is that there are four classes. (Of course, you
may...
|
by: Thomas Girod |
last post by:
Hi.
I found a lot of documentation about how to code in Python, but not
much about how you organize your code in various modules / packages ...
As I am not yet used to python, this puzzle me a bit.
So, can anyone explain how one should organize and store its code ? the
uses of __init__.py files ? Maybe my question is not very clear, but I
hope someone will understand anyway ...
|
by: Alan Larsson |
last post by:
Is there a way i can look at the php code that is runnig a site, without any
ind of admin access to the server?
|
by: Rich Healey |
last post by:
AON LAZIO wrote:
Aon,
Please keep these replies on list (I've CC'd the list now).
This isn't actually a very long error message, but since email is a
scrollable medium including long messages often isn't too bad. If you're
worried, include a link to a pastebin.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |