Cannot delete files from RAR archives
Moderators: Hacker, petermad, Stefan2, white
Cannot delete files from RAR archives
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
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
- ghisler(Author)
- Site Admin
- Posts: 49232
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have just tried it here - no error. Where is your TEMP directory located?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 49232
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Maybe it's a bug in WinRAR 4 - I'm still using 3.71 (registered) here.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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
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
- ghisler(Author)
- Site Admin
- Posts: 49232
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
My temp directory is set to c:\temp, can you try whether it works with that?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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.
It shoud be enough to set the working directory before running winrar, but it seems that TC doesn't do it.
- ghisler(Author)
- Site Admin
- Posts: 49232
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
What does your rar.ini contain? Mine just contains
switches=-m5
It should be in the winrar directory.
switches=-m5
It should be in the winrar directory.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com