Login  
Search All Forums
Dart Home | PowerTCP Zip Compression for Active | Custom Development Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
AuthorForum: PowerTCP Zip Compression for ActiveX
Topic: Error 13501 QuickUnzipping over read only file
lcardani

From: Waltham, MA USA
Posts: 1
Member Since: 06/04/10
posted June 4, 2010 1:04 PM

Hi,

We were running an old version of DartZip.dll (v1.8.2.0) and got the error 12026 when we tried to QuickUnzip a file on top of read only files that already existed.

We installed the trial version (v1.9.0.0) and got the error 13501 instead, but the QuickUnzip still failed.

We are already passing True for the PreservePath and Overwrite booleans.

Is there a way we can tell the control to overwrite the files, even though some of the files may be read only on the disk, and avoid getting the error?

Thanks,

Larry
Nick B (Admin)

From: Utica, NY USA
Posts: 577
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted June 4, 2010 1:58 PM

Hello,

The files must be made writable before the unzip operation with your own code. Our control does not have functionality built into it to make read-only files writable; this is an operation for the user to decide upon.

Here is some code to examine that might help you in setting file attributes:
http://stackoverflow.com/questions/750679/how-do-you-make-a-file-writeable-in-vb

If you just want to set the file to writable, this may be the easiest thing to call:
SetAttr "C:\somefile.txt", vbNormal

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerTCP Zip Compression for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX