473,418 Members | 2,121 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,418 software developers and data experts.

How to Zip Files from ms Access

Dear all,

I have files in my computers and now want zip that files and send it by
email any one help me thanks
Khalid

Dec 11 '05 #1
5 9190
h.********@gmail.com wrote:
Dear all,

I have files in my computers and now want zip that files and send it by
email any one help me thanks
Khalid

You might want to check out the Shell() function.
Dec 11 '05 #2
h.********@gmail.com wrote:
Dear all,

I have files in my computers and now want zip that files and send it by
email any one help me thanks
Khalid

Hmmmm... the shell function will help you in zipping a file. Sending it
via e-mail is a another problem.

You might want to check out Tony Toews web site for the Email Faq.
http://www.granite.ab.ca/accsmstr.htm or
http://www.granite.ab.ca/access/email.htm

Next, you might want to go to
http://www.google.com/advanced_search?hl=en and enter something like
"Send Email Attachments" in the word search and *access* for the group.

Access allows you to send stuff via e-mail with the SendObject()
function but the objects sent are strictly Access objects. No
attachments allowed. So you need another method.
Dec 11 '05 #3
I create and email zip files using a multi step process.

1) Create a text file listing the path and file names to zip
2) Use the following shell command to zip using WinZip

Shell("c:\program files\winzip\winzip32 -min -a paths.zip @paths.txt")

Note: go to the winzip site for command line options

3) Create email attaching the zip file
You will need to add some form of pause between the shell
and attach functions to give WinZip time to create the file.

<h.********@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Dear all,

I have files in my computers and now want zip that files and send it by
email any one help me thanks
Khalid

Dec 12 '05 #4
h.********@gmail.com wrote:
Dear all,

I have files in my computers and now want zip that files and send it by
email any one help me thanks


Another option is the CGZibLibrary.DLL

http://www.codeguru.com/vb/gen/vb_gr...icle.php/c6743

--
'---------------
'John Mishefske
'---------------
Dec 14 '05 #5
On Mon, 12 Dec 2005 07:58:43 -0600, "paii, Ron" <pa**@packairinc.com>
wrote:
I create and email zip files using a multi step process.

1) Create a text file listing the path and file names to zip
2) Use the following shell command to zip using WinZip

Shell("c:\program files\winzip\winzip32 -min -a paths.zip @paths.txt") You could get trouble with access going to step 3 before winzip has
finished. Terry Kraft has made a shellwait funktion:
http://www.mvps.org/access/api/api0004.htm
Note: go to the winzip site for command line options

3) Create email attaching the zip file
You will need to add some form of pause between the shell
and attach functions to give WinZip time to create the file.

--
Mvh Benny Andersen
Dec 14 '05 #6

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

Similar topics

2
by: Tim Blizard | last post by:
I know this topic has been discussed before but I couldn't find any thread more recent than about 18 months and was interested in what conclusions people had come to recently. Invariably 3...
36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
6
by: J. Shrimp, Jr. | last post by:
Following code exports tables as text files: For Each tdf In db.TableDefs StrTblName = tdf.Name Me.txtProgName = StrTblName Me.txtProgName.Requery tblAtt = tdf.Attributes moddate =...
14
by: Mick | last post by:
I wrote a C# program that interfaces with a data vendor over the web using an API they supplied and their examples in C#. Now I have another data vendor's API and example that I want to add to...
9
by: Bob Achgill | last post by:
I would like to use the timestamp on files to manage the currency of support files for my VB windows application. In this case I would only put the timestamp of the file in the management database...
6
by: (PeteCresswell) | last post by:
User wants to go this route instead of storing pointers in the DB and the documents outside. Only time I tried it was with only MS Word docs - and that was a loooong time ago - and it seemed to...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
1
by: martigras911 | last post by:
Hi, The WorkOrder folder, which contains two Access files (Work Orders.mdb & Work OrdersEng.mdb) used to be resided in the F:\ server (F:\ACCESS\SHARE\ENG\Work Orders). These two files were...
5
by: rogersw8n | last post by:
Some how, some way the account that creates folders under Temporary Internet files has been changed to a domain account for VS 2003 and VS 2005. I recently installed VS 2005. All seemed to be ok...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.