|
Post by munchi on Mar 6, 2007 6:06:12 GMT -5
Hi!
I have written a small program to zip a copy of my documents. It is actually a simple backup tool to create backups auf my important files.
When the programs tries to ZIP a Word file wich in use (opend by Word) a empty error box is shown. I was able to find the origin of that message: VCLZip.pas, Line 2242 where a IDS_BAS_UNCOMPRESSED_SIZE Message is created.
I guess VCLZip has a problem with the file beeing in use. But I actualy wonder why. In VCLZip.pas Line 2067 the IFile Stream is created with ...fmOpenRead or fmShareDenyNone...
I simulated this behaviour and created a Filestream myself using this parameters. The result was, that I can create such a stream (using fmOpenRead or fmShareDenyNone) without any problems. Reading from that stream causes no errors aswell.
So why is VCLZip not able to read the file when it is uses by Word? What kind of access does VCLZip need to read a file without problems?
Thanks for your advise Munchi
|
|
|
Post by Kevin on Mar 13, 2007 16:51:01 GMT -5
Hi Munchi,
I just got back from a vacation where I did not have access to a computer so, sorry for the delay in answering this question.
I am not sure why you are having problems with an open Word file. I just tried it myself and I did not get any error and the file zipped ok.
Can you tell me anymore about your situation that might help? What version of Word and Windows are you using? Does this happen for ALL open Word files or does it work sometimes?
Thanks,
Kevin
|
|
jerbear
New Member
If it's Not Broke, Don't Fix It.
Posts: 7
|
Post by jerbear on Apr 9, 2007 5:32:57 GMT -5
Interested in this one...
We have a database program written using TurboPower's FlashFiler and it runs 24/7
Will this latest version of VCLZip allow me to back up all of the data files even if they are in use?
At present we have to down FlashFiler server to enable a backup but it would be helpful if VCLZip could do the above.
Many Thanks
Jerbear
|
|
Heiko
New Member
Posts: 18
|
Post by Heiko on Apr 10, 2007 8:34:52 GMT -5
|
|
|
Post by Kevin on Apr 10, 2007 19:51:16 GMT -5
VCLZip will backup files that are open. The product described by Heiko above may enhance this in some way, I don't know, but VCLZip will do a standard read on a file even if it is open.
Kevin
|
|