Cannot delete files from RAR archives

Please report only one bug per message!

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Devil
Junior Member
Junior Member
Posts: 15
Joined: 2009-09-13, 10:13 UTC

Cannot delete files from RAR archives

Post by *Devil »

Steps to re-produce:
1. Open an RAR archive
2. View any file from it (with F3)
Internal unrar is used and file is extracted to temp (on drive C:\ in my case)
3. Now try delete any file from the archive
Winrar is used, but the working path is still set to C:\ - which is unwritable on Win 7 - therefore winrar delete nothing

If you skip step 2, the working path remains correctly set to path with the RAR archive.

Total Commander 7.56a
Winrar 4.00
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have just tried it here - no error. Where is your TEMP directory located?
Author of Total Commander
https://www.ghisler.com
Devil
Junior Member
Junior Member
Posts: 15
Joined: 2009-09-13, 10:13 UTC

Post by *Devil »

in my case on win7 its
C:\Users\<user>\AppData\Local\Temp\_tc\

and one more thing - the working path is really set to C:\ not the full temp path

And if it's not clear from my description - you extract one file for view, close the viewer and after that try deleting the file - you can't change the dir meanwhile.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe it's a bug in WinRAR 4 - I'm still using 3.71 (registered) here.
Author of Total Commander
https://www.ghisler.com
Devil
Junior Member
Junior Member
Posts: 15
Joined: 2009-09-13, 10:13 UTC

Post by *Devil »

Unfortunately it's not.
I just tried WinRar 3.71 and clean TC instalation (only the path to Winrar.exe was set, everything else set to default) and I still get in winrar
! Cannot create __rar_00.078
! Access denied.

which is understandable because the working path for the winrar is really set to "C:\" not even full path to TEMP

but as I've said if you skip the step with F3 on the file you want to delete the path is correctly set to dir with rar archive.

For the reference these are the parameters in the wrong case (captured via replacing winrar with own program):
Params: d -c- E:\a\CommandCmd.rar @C:\Users\Devil\AppData\Local\Temp\CMDF43B.tmp
Current dir: C:\

and these are in good case:
Params: d -c- E:\a\CommandCmd.rar @C:\Users\Devil\AppData\Local\Temp\CMDF20B.tmp
Current dir: E:\a
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

My temp directory is set to c:\temp, can you try whether it works with that?
Author of Total Commander
https://www.ghisler.com
Devil
Junior Member
Junior Member
Posts: 15
Joined: 2009-09-13, 10:13 UTC

Post by *Devil »

No, it still sets the working dir to C:\ (although one time it was C:\Temp - which is not the correct dir (E:\a), but it's better than C:\ :) - unfortunetaly I'm not completly sure what I dit in this case)

It shoud be enough to set the working directory before running winrar, but it seems that TC doesn't do it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

What does your rar.ini contain? Mine just contains
switches=-m5

It should be in the winrar directory.
Author of Total Commander
https://www.ghisler.com
Devil
Junior Member
Junior Member
Posts: 15
Joined: 2009-09-13, 10:13 UTC

Post by *Devil »

for some reason I don't see the .ini anywhere - nor the Winrar directory, nor Windows, ...

I "solved" it by setting the TEMP directory to another drive (M:\Temp), where I can allow full access to everyone.
Although it still sets the working directory to M:\, not M:\Temp.
Post Reply