adding file extension does not work when "." is in the file name.
A free file archiver for extremely high compression
Brought to you by:
ipavlov
Hi,
where running "7z a -tzip filename"
the outcome is a file called "filename.zip" (which is the expected output)
when running "7z a -tzip filename2.0.0"
the expected output is a file called "filename2.0.0.zip", but the actual outcome is a file called "filename2.0.0"
this is obviously wrong.
please let me know how to proceed from here.
thanks.
what about
?
I guess it will work, but the way I'm using it (through command line) I'm
only getting the name of the file, and the extension is done (or at least
was done) by using the -tzip parameter.
I took a look at the code, and couldn't really understand why there was a
calculation to find the location of the '.' in the file name.
Isn't it more simple to just add the extension of the file at the end
without caring about the name at all?
Btw, what you offer is also weird since you are giving the -tzip parameter,
but stating a different file extension as the actual name…
The outcome is:
C:\Program Files\7-Zip>7z a -tzip c:\1\test.7z History.txt
7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04
Scanning the drive:
1 file, 45131 bytes (45 KiB)
Creating archive: c:\1\test.7z
Items to compress: 1
Files read from disk: 1
Archive size: 12471 bytes (13 KiB)
Everything is Ok
Last edit: Igor Pavlov 2017-07-27