Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

*View All Threads*Show in Threaded Mode


Subject.7z and invalid filenames Reply to this message
Posted bydonnyjasperson
Posted on08/05/08 09:49 PM



Whenever I attempt to rebuild with 7z compression and the filename starts with "-" I get an error. I am assuming that 7z thinks you are passing a command and errors because the format of the "command" is incorrect?




SubjectRe: .7z and invalid filenames *edit* new Reply to this message
Posted byRoman
Posted on08/06/08 03:49 AM



> Whenever I attempt to rebuild with 7z compression and the filename starts with
> "-" I get an error. I am assuming that 7z thinks you are passing a command and
> errors because the format of the "command" is incorrect?
>



Interesting to know....I guess I have to add quotes around the filenames then. Currently quotes are only added if a space is in the name.
So you can check this by having a '-' starting filename with spaces (it should work then because cmpro adds quotes) and one without spaces which should fail.

I will do some tests and I think this will be fixed then in the next version.

*edit* I did some test with the commandline 7z.exe and it appears that it's not related to the quotes. 7z got a problem when trying something like:

7z a C:\test.7z -test.txt

no matter if you use quotes: 7z a C:\test.7z "-test.txt".
Only solution seems to be to specify the path:

7z a C:\test.7z ./-test.txt



Roman Scherzer



SubjectRe: .7z and invalid filenames *edit* new Reply to this message
Posted byRoman
Posted on08/06/08 03:30 PM



fixed in next version


Roman Scherzer



View All Threads*Show in Threaded Mode