|
| [WM] - Error in zipCreate() |
| Iniciado por guest, 01,dic. 2015 13:19 - 6 respuestas |
| |
| | | |
|
| |
| Publicado el 01,diciembre 2015 - 13:19 |
Hello,
I am trying to use zipCreate in my Android app for create a zip file of the default data file. But I keep on getting this error message: Quote
2: Access denied: the user has no sufficient rights
How to solve this problem?
TIA
Yogi Yang |
| |
| |
| | | |
|
| | |
| |
| Publicado el 01,diciembre 2015 - 13:55 |
Hi
as it looks like you don't have the right to write where you are writing, you should try in another directory
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,diciembre 2015 - 05:11 |
Thanks for feedback. Quote Fabrice Harari as it looks like you don't have the right to write where you are writing, you should try in another directory But if I copy a file in the target folder it works. So why is this function giving such an error then?
TIA
Yogi Yang |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,diciembre 2015 - 07:18 |
| Hi Yogi, I had this "problem" recently too - simply under Windows 10. You have to understand the zipCreate function first .. the first parameter is not the phyiscal name of any archive, its just a logical reference to your archive, so, "MyArchive" is just fine, its like the file number for the f-functions, a reference for further handling of the file. The second parameter is the physical file name of the archive file, further operations will use the first parameter as an easy reference to the archive. The extension of the physical name decides about the type of the archive to be created. .zip for ZIP, .7z for 7-zip etc. Then, next commands in your program will add files and directories to the archive, zipAddDirectory, zipAddFile .. at last zipClose will close MyArchive and that's it. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,diciembre 2015 - 08:34 |
Hello Guenter,
Thanks for the tip. I have used this in past in WD but now I am trying to us it in WM for an app which is targeted for Android.
TIA
Yogi Yang |
| |
| |
| | | |
|
| | |
| |
| Publicado el 02,diciembre 2015 - 09:54 |
Yogi,
The Android application can only write to SD Card or its own directory.
I am using the Zip command in Android and this is working fine.
I first create a ZIP by zipCreate(sName,sLogPath7Z) and then add files
zipAddFileList(sName,sFiles) Files is a string containing the paths of the files needed to be added to the Archive, seperated by CR
And finaly, Close the ZIP
zipClose(sName) Danny |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,diciembre 2015 - 05:03 |
Thanks everyone for your suggestions and tips.
The actual problem was with the Android Emulator created by AVD.
When I ran the app on physical mobile device it worked like a charm.
Thanks again.
Yogi Yang |
| |
| |
| | | |
|
| | | | |
| | |
|