Hi,
Assume a command to compress files or folders placed in "D:\Mes Programmes" with 7zip such as:
@nodeselect
@runonce "D:\Mes Programmes\Outils\7-ZIP\7zG.exe" a -r "{dlgchoose|Where?|Here={sourcepath}+Destination={destpath}}{dlgchoose|Archive name:|{file|noext}+{sourcepath|noterm|nopath}}" -mx9 {allfilepath$}
This worked nice in previous version but I recently noticed something weird in {sourcepath} behavior. When there is one or more spaces in a path, as in "D:\Mes Programmes" DOpus does this:
e.g. with {sourcepath|noterm|nopath}
(nom de l'archive is the french for archive name)
e.g. with just {sourcepath}
e.g. with {sourcepath|noterm}
As you can see there is leading and trailing weird character in the name and the archive produced with this name have no extension. Everything would be ok if the source path were "D:\MesProgrammes" (no space)
e.g. the file "toto.exe" is normally compressed as "toto.7z" but if there is space in the sourcepath it results just "toto"