473,396 Members | 1,916 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,396 software developers and data experts.

Zip mdb using Batch File

I'm hoping someone will be able to assist with this one. Using a scheduling
program I'd like to run a batch file that runs a macro to creat e a copy of
the opened database. Then, using batch again, Zip that copied file to the
same directory location and delete the copied file.

The ultimate goal here is to create small sized back ups of the original
database. I have the first part (creating the copy mdb) working great. It's
zipping that copy that's giving me issues.

Any thoughts or suggestions is much appreciated!

Thanks
Jun 16 '06 #1
5 6425
You will need a DOS based (command line) zip utility. Once you have that,
use the command line recommended by the maker of the utility. If you have
WinZip, they have a free command line add-on. There are others.

--
Wayne Morgan
MS Access MVP
"benyod79" <u23098@uwe> wrote in message news:61dd747206000@uwe...
I'm hoping someone will be able to assist with this one. Using a
scheduling
program I'd like to run a batch file that runs a macro to creat e a copy
of
the opened database. Then, using batch again, Zip that copied file to the
same directory location and delete the copied file.

The ultimate goal here is to create small sized back ups of the original
database. I have the first part (creating the copy mdb) working great.
It's
zipping that copy that's giving me issues.

Any thoughts or suggestions is much appreciated!

Thanks

Jun 16 '06 #2
http://www.info-zip.org/

Free command zip utility. Use it all the time to do exactly what your
looking to do except I do it in vbscript.

Wayne Morgan wrote:
You will need a DOS based (command line) zip utility. Once you have that,
use the command line recommended by the maker of the utility. If you have
WinZip, they have a free command line add-on. There are others.

--
Wayne Morgan
MS Access MVP
"benyod79" <u23098@uwe> wrote in message news:61dd747206000@uwe...
I'm hoping someone will be able to assist with this one. Using a
scheduling
program I'd like to run a batch file that runs a macro to creat e a copy
of
the opened database. Then, using batch again, Zip that copied file to the
same directory location and delete the copied file.

The ultimate goal here is to create small sized back ups of the original
database. I have the first part (creating the copy mdb) working great.
It's
zipping that copy that's giving me issues.

Any thoughts or suggestions is much appreciated!

Thanks


Jun 17 '06 #3
Thank you both for your replies. Being somewhat new at DOS, the command line
utility's link was a bit overwhelming and I couldn't figure out what to
download. So after a few valliant, but unfruiful attempts, I chose to look at
WinRar's command line downloads (my zipping program). I'm still not getting
the results I'm looking for. The batch file I created is returning an error.
Here's exactly what I have so far all on one line:

"C:\Program Files\WinRAR\WinRaR.exe" "C:\Documents and Settings\Owner\My
Documents\Open Projects\Human Resources\DB Backup\Backup_of_HR_06-16.mdb" "C:\
Documents and Settings\Owner\My Documents\Open Projects\Human Resources\DB
Backup\Backup_of_HR_06-16.rar"

I'm getting this error message: No files selected. You need to select files
for this operation.

Any thoughts on this? Should I scrap the idea using WinRar and just use a
Windows Zipping utility?

Thanks for the help.

us****@yahoo.com wrote:
http://www.info-zip.org/

Free command zip utility. Use it all the time to do exactly what your
looking to do except I do it in vbscript.
You will need a DOS based (command line) zip utility. Once you have that,
use the command line recommended by the maker of the utility. If you have

[quoted text clipped - 19 lines]
>
> Thanks


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200606/1
Jun 19 '06 #4
I looked at the WinRar help file to get the correct command line, try:

"C:\Program Files\WinRAR\WinRaR.exe" a "C:\Documents and Settings\Owner\My
Documents\Open Projects\Human Resources\DB Backup\Backup_of_HR_06-16.rar"
"C:\Documents and Settings\Owner\My Documents\Open Projects\Human
Resources\DB Backup\Backup_of_HR_06-16.mdb"

--
Wayne Morgan
MS Access MVP
"benyod79 via AccessMonster.com" <u23098@uwe> wrote in message
news:6206d88bd84eb@uwe...
Thank you both for your replies. Being somewhat new at DOS, the command
line
utility's link was a bit overwhelming and I couldn't figure out what to
download. So after a few valliant, but unfruiful attempts, I chose to look
at
WinRar's command line downloads (my zipping program). I'm still not
getting
the results I'm looking for. The batch file I created is returning an
error.
Here's exactly what I have so far all on one line:

"C:\Program Files\WinRAR\WinRaR.exe" "C:\Documents and Settings\Owner\My
Documents\Open Projects\Human Resources\DB Backup\Backup_of_HR_06-16.mdb"
"C:\
Documents and Settings\Owner\My Documents\Open Projects\Human Resources\DB
Backup\Backup_of_HR_06-16.rar"

I'm getting this error message: No files selected. You need to select
files
for this operation.

Any thoughts on this? Should I scrap the idea using WinRar and just use a
Windows Zipping utility?

Thanks for the help.

us****@yahoo.com wrote:
http://www.info-zip.org/

Free command zip utility. Use it all the time to do exactly what your
looking to do except I do it in vbscript.
You will need a DOS based (command line) zip utility. Once you have
that,
use the command line recommended by the maker of the utility. If you
have

[quoted text clipped - 19 lines]
>
> Thanks


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200606/1

Jun 20 '06 #5
Thank you so much. That works beautifully. I'll try to follow your lead to
complete the rest of the code.


Wayne Morgan wrote:
I looked at the WinRar help file to get the correct command line, try:

"C:\Program Files\WinRAR\WinRaR.exe" a "C:\Documents and Settings\Owner\My
Documents\Open Projects\Human Resources\DB Backup\Backup_of_HR_06-16.rar"
"C:\Documents and Settings\Owner\My Documents\Open Projects\Human
Resources\DB Backup\Backup_of_HR_06-16.mdb"
Thank you both for your replies. Being somewhat new at DOS, the command
line

[quoted text clipped - 34 lines]
>
> Thanks


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200606/1
Jun 20 '06 #6

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

Similar topics

14
by: Mark C. | last post by:
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run... in an asp script. Naturally, I can get the script to work from a command...
4
by: Bill | last post by:
I need help closing a CMD window when it is executed from Access. 1) The batch file is called from Access. 2) Access closes, 3) the batch runs a copy of the access database (creating a backup)...
5
by: Mark | last post by:
Hi all, I am trying to execute a batch file to copy over files from one server to another. The batch file is using robocopy to copy over the files. ============ private void CopyFiles() {// Use...
1
by: Bucky Pollard | last post by:
I have a web service that needs to create a batch file and call it (since there are no APIs for the functionality I am looking for). I am using the Process and ProcessStartInfo objects. When I try...
3
by: Micus | last post by:
Greetings, I need to execute 2 applications from an application or batch file. The first app launched has the user enter a product key and the app's exit code will be 0 (failed) or 1...
2
by: Stephen | last post by:
Hi all, I want to create an app that runs a batch file which inturn runs applications. question: if I start the batch file from app1, how can app1 know that the batch file ran successfully...
1
by: DropIn | last post by:
Sheesh! I was doing research on using batch files as drop targets when I came across a python discussion thread on this site with the same topic. I thought I would share what I had learned (the...
0
by: -pb- | last post by:
Hi, I have developed a web site for my client on .net 2.0 framework using asp.net 2.0. This web site will be hosted on Windows 2003 server. Web application runs the batch file on the user...
0
by: prateekbaxi | last post by:
Hi, I developed a web site for my client on .net 2.0 framework using asp.net 2.0. This web site will be hosted on Windows 2003 server. Web application runs the batch file on the user button...
14
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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...

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.