Unpacker target directory
Posted: 16 Jun 2006, 15:11
I have got a simple unpacker which tackes the archive as its only parameter and unpacks to the current working directory. I added this to the 'Unpackers in Unpack Dialog Box' list. As the only parameter I added $(ArchiveDOSFullName). Support long names is acvtivated (though probably irrelevant, since the tool does not support extracting individual files in a manner that was supported be Servant Salamander).
I unpack to subdirectory named by archive.
Salamander creates the directory given in the unpack dialog, but extracts to the directory named by the archive's DOS Name minus extension. It does this even when the destination folder was changed in the dialog.
Let's take an Example. I have a folder and the Archive. Here is the partial
output of DIR /x
As you can see, the DOS name of the directory is the the same as the DOS name of the archive without the extension.
Now I extract to the directory named by archive. I get:
Files were extracted to LONGNA~1\, so they are now in "Long Names" instead of "Long Name" (possibly silently overwriting files which where there before).
Now I rename the archive to "Long Archive Name.arc", then extract it again, but change the destination folder to ARCHIVE:
Salamander created the destination folder ARCHIVE\, but extracted to LONGAR~1\.
Is there something wrong with my setup or the unarchiver tool I used, or is this a bug of Servant Salamander?
I unpack to subdirectory named by archive.
Salamander creates the directory given in the unpack dialog, but extracts to the directory named by the archive's DOS Name minus extension. It does this even when the destination folder was changed in the dialog.
Let's take an Example. I have a folder and the Archive. Here is the partial
output of DIR /x
Code: Select all
16.06.2006 12:39 13.320 LONGNA~1.ARC Long Name.arc
16.06.2006 14:50 <DIR> LONGNA~1 Long Names
Now I extract to the directory named by archive. I get:
Code: Select all
16.06.2006 14:57 <DIR> LONGNA~2 Long Name
16.06.2006 12:39 13.320 LONGNA~1.ARC Long Name.arc
16.06.2006 14:57 <DIR> LONGNA~1 Long Names
Now I rename the archive to "Long Archive Name.arc", then extract it again, but change the destination folder to ARCHIVE:
Code: Select all
16.06.2006 15:02 <DIR> ARCHIVE
16.06.2006 12:39 13.320 LONGAR~1.ARC Long Archive Name.arc
16.06.2006 14:57 <DIR> LONGNA~2 Long Name
16.06.2006 14:57 <DIR> LONGNA~1 Long Names
16.06.2006 15:02 <DIR> LONGAR~1
Is there something wrong with my setup or the unarchiver tool I used, or is this a bug of Servant Salamander?