[Libreoffice-bugs] [Bug 48413] Windows: Command line bulk conversion including wildcards (*?) not working

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 6 05:35:13 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=48413

Mike Kaganski <mikekaganski at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|: Command line bulk         |Windows: Command line bulk
                   |conversion from doc to odf  |conversion including
                   |not working                 |wildcards (*?) not working
            Version|3.5.1 release               |Inherited From OOo
           Severity|normal                      |enhancement
           Keywords|                            |difficultyBeginner,
                   |                            |easyHack, skillCpp
           Hardware|x86-64 (AMD64)              |All

--- Comment #14 from Mike Kaganski <mikekaganski at hotmail.com> ---
This Windows-only enhancement needs LibreOffice to implement own wildcard
matching when pre-processing the passed command line on Windows. Unlike *nix
environment, On Windows there's no shell pre-processing that the resulting
command line that LibreOffice gets is already expanded.

For now, tricks like

> for %%f in ("input folder\*.sxd") do "C:\Program Files\LibreOffice\program\soffice.exe" --convert-to png --outdir "output folder" "%%f"

are needed (the example above is for batch files; if using in console, %%
should be replaced into %; see e.g. [1]).

Code pointer: the command line handling happens in
desktop/source/app/cmdlineargs.cxx. It must be Windows-only, since on other
platforms, the file path is an arbitrary byte sequence, which itself may
include bytes like '*' or '?' (different flavors of FS may apply own
restrictions).

[1] https://ask.libreoffice.org/en/question/86800

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200706/a68b877a/attachment.htm>


More information about the Libreoffice-bugs mailing list