Write protect error when deleting a file from a zip file

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
engmod
Junior Member
Junior Member
Posts: 13
Joined: 2015-04-22, 11:16 UTC
Location: eltham australia

Write protect error when deleting a file from a zip file

Post by *engmod »

I am trying to delete a file from a zip.

I get this error:-

Error: Cannot write g:\_MS Train Simulator\....\3DTS West Colton\3DTS West Colton.zip!

Please remove the write protection!


I have checked permissions on shares and files, all are ok.

I can delete the file with FreeCommander XE without problem.

cheers
Derek

ps: win7 x64 all updates tc8.51 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Do you have write rights to the directory? Modifying a ZIP means creating a new ZIP, copying all files you want to keep to the new ZIP, then deleting the original.
Author of Total Commander
https://www.ghisler.com
engmod
Junior Member
Junior Member
Posts: 13
Joined: 2015-04-22, 11:16 UTC
Location: eltham australia

Post by *engmod »

I do have write access.

I did say the write can be done with FreeCommander XE.
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Probably Read Only is zip file itself!
engmod
Junior Member
Junior Member
Posts: 13
Joined: 2015-04-22, 11:16 UTC
Location: eltham australia

Post by *engmod »

No, not read only.

As I have said twice, FreeCommander XE can do the job.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I have no idea what else could be wrong. Try using Process Monitor from Sysinternals to see which function fails.
Author of Total Commander
https://www.ghisler.com
engmod
Junior Member
Junior Member
Posts: 13
Joined: 2015-04-22, 11:16 UTC
Location: eltham australia

Post by *engmod »

Procmon shows that it is explorer.exe that is getting the access denied.
I can not figure out why.

The disk is question is a data disk, so I have removed all partitions, repartitioned, copying data back on now.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Are you trying to delete to recycle bin? This goes to Explorer via OLE2. This will fail if the name is longer than 259 characters.

You can try to delete directly with Shift+Del.
Author of Total Commander
https://www.ghisler.com
engmod
Junior Member
Junior Member
Posts: 13
Joined: 2015-04-22, 11:16 UTC
Location: eltham australia

Post by *engmod »

I am not doing the delete,
I am deleting a file from a zip with tc.
Under the hood,
1. create new zip file named *.zi#,
2. copy all of the other files into the zi#
3. delete *.zip
4. rename *.zi# to *.zip

Its number 4 that's failing as the zip file takes 10 to 30 seconds to disappear.

Still looking.

will look at the file name lengths, but the zip files are not appearing in the recycle bin.
engmod
Junior Member
Junior Member
Posts: 13
Joined: 2015-04-22, 11:16 UTC
Location: eltham australia

Post by *engmod »

Well I never.

The problem was being caused by Panda Antivirus Free.
It has been uninstalled from my system and everything tested ok.

Installing Bitdefender free now.
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the English forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply