RFE for ZIP 2.3 Win32 version:
When a file is locked and the "-q" option is used, the error message ("zip warning: Permission denied") should indicate the name of the locked file.
Logged In: YES user_id=1172496 Originator: NO
Zip 3.0 should handle this better. Please check the latest beta. Also there have been improvements in Zip 2.32 so check that release. Let us know.
Logged In: YES user_id=481420 Originator: YES
No, Zip 3.0f and 2.32 are both not better. With the "-q" option, the only message is "zip warning: Permission denied" when a file is locked. The file name is not displayed.
I have written the following Win32 test program to lock a file:
#include <stdio.h> #include <Windows.h>
int main (int argc, char* argv[]) { char* fileName; HANDLE* file; if (argc != 2) {printf ("Missing file name.\n"); return 9; } fileName = argv[1]; printf ("Locking file \"%s\"...\n",fileName); file = CreateFile(fileName, FILE_READ_DATA | FILE_WRITE_DATA, 0, NULL, OPEN_EXISTING, 0, NULL); if (file == INVALID_HANDLE_VALUE) {printf ("Open failed.\n"); return 9; } printf ("Press Enter to continue - "); getchar(); CloseHandle (file); return 0; }
Log in to post a comment.
Logged In: YES
user_id=1172496
Originator: NO
Zip 3.0 should handle this better. Please check the latest beta. Also there have been improvements in Zip 2.32 so check that release. Let us know.
Logged In: YES
user_id=481420
Originator: YES
No, Zip 3.0f and 2.32 are both not better.
With the "-q" option, the only message is "zip warning: Permission denied" when a file is locked. The file name is not displayed.
I have written the following Win32 test program to lock a file:
#include <stdio.h>
#include <Windows.h>
int main (int argc, char* argv[]) {
char* fileName;
HANDLE* file;
if (argc != 2) {printf ("Missing file name.\n"); return 9; }
fileName = argv[1];
printf ("Locking file \"%s\"...\n",fileName);
file = CreateFile(fileName, FILE_READ_DATA | FILE_WRITE_DATA, 0, NULL, OPEN_EXISTING, 0, NULL);
if (file == INVALID_HANDLE_VALUE) {printf ("Open failed.\n"); return 9; }
printf ("Press Enter to continue - ");
getchar();
CloseHandle (file);
return 0; }