473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Code to Unzip file from Outlook message

Jim
I have a user who works remotely who just does not understand the
concept of zipping and unzipping files no matter how many times I
explain it. I need to create something for her that will do the
following:

* She receives an outlook message with a zipped file and opens the
message.
* She opens an Access "Utilities" database and clicks a button labeled
"Unzip updated database from eMail message"
* Somehow the code behind the button looks for the open eMail message,
unzips the attached file, and places it in "E:\NewDB\Data.mdb"
overwriting the existing Data.mdb file that's there.

Can this be done? Any help would be appreciated!

Nov 13 '05 #1
3 4509
On 21 Jul 2005 06:21:19 -0700, "Jim" <jl*******@gmail.com> wrote:
I have a user who works remotely who just does not understand the
concept of zipping and unzipping files no matter how many times I
explain it. I need to create something for her that will do the
following:

* She receives an outlook message with a zipped file and opens the
message.
* She opens an Access "Utilities" database and clicks a button labeled
"Unzip updated database from eMail message"
* Somehow the code behind the button looks for the open eMail message,
unzips the attached file, and places it in "E:\NewDB\Data.mdb"
overwriting the existing Data.mdb file that's there.

Can this be done? Any help would be appreciated!

Yes but other things would be much easier if you can find an interface that she understands.
For instance, could she drag the attachment from outlook and drop it on an icon on the
desktop or in the folder you use? This could be a batch file or script which does whatever you want.

Nov 13 '05 #2
Jim
Yes, I could have her drop it on the desktop...

Nov 13 '05 #3
WinZip provides a command line utility that interfaces with WinZip and
accepts variable input. You can SHELL to that utility passing the
zip/unzip action and command line parameters as a string.

http://www.winzip.com/downcl.htm

The command line utility help file provides syntax for the command line
parameters.

Here's a snitch of code from one of my projects. This will take a
variablly named text file and zip it into a variably password protected
zip file in the background.

<compiled code>
wkPath = GetFilePath(CodeDb.Name) & "DataFiles\"
ChDir wkPath

wkText = wkPath & Me.ufISACFtpSource
wkZipt = wkPath & Me.ufISACFtpDest
wkDest = Me.ufISACFtpDest

wkCmnd = "C:/Program Files/WinZip/wzzip.exe -s" & Me.ufISACFtpPwd & "
""" & wkZipt & """ """ & wkText & """"
OK = Shell(wkCmnd, vbMinimizedNoFocus)

</compiled code>

Outlook is a programmable interface that will enable you to manipulate
its data store programmatically. I've never done it, but you should be
able set a reference to the outlook libraries in order to manipulate
them from Access.

Another alternative might be to license the WinZip self-extractor. If
you can get an attached executable past the corporate firewall, all
your user would have to do is double-click the attached executable.

Oops. Did I say that out loud?

King Ron of Chi

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Yogi_Bear_79 | last post by:
pardon my ignorance as I am a self-taught hobbyist programmer. I am curious after reading up on SharpZipLib. Can I embed a zipped txt file in my program? Then either read from within the zip...
1
by: johnnyh | last post by:
I am currently using ASP.Net / C# to partially upload the first 100K of a CSV file to programattically extract the header information for field mapping against our database and for a test sample of...
1
by: Jean Christophe Avard | last post by:
Hi! Finally I figure out what was wrong... "objZipEntry.size = strmFile" I wasn't giving the right file length... But now, I have issue with the unzip function... I can't unzip it, the unzip function...
2
by: Jim Andersen | last post by:
I am going to build a webapp. Our users are not allowed to download certain files, so I need to show files in a directory (.doc, .ppt, ???) and the user can then convert them to PDF and download...
3
by: SDRoy | last post by:
Hello Can someone tell me how I can unzip a .zip file in C#. The zip file is already there and I just need to unzip..not zip and unzip. -- Thanks, SDRoy
3
by: DaveO | last post by:
My apologies for individually posting this to multiple newsgroups - my ISP won't allow multiple posts. I'm not a C programmer, so I'm looking for someone to modify some UnZip code for a...
3
by: sdoty044 | last post by:
I am a true n00b... and I just using Python to complete some very small uneventful task, but need help with one last thing. Basically, this I what I am trying to do. make a temp directory...
5
by: =?Utf-8?B?anVsaW8=?= | last post by:
Hi, I write a program to unzip a Tar file generated on a Unix environment file using SharpZipLib, but returns a error "Header checksum is invalid" when execute the program. This error appears...
1
by: olddocks | last post by:
I want to upload a zip file and then extract/unzip it. I am accomplishing this with php exec command. I am calling unzip from php exec command within a php script and it is not extracting files. why?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.