<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Windows: Command line bulk conversion including wildcards (*?) not working"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=48413">bug 48413</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>: Command line bulk conversion from doc to odf not working
           </td>
           <td>Windows: Command line bulk conversion including wildcards (*?) not working
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Version</td>
           <td>3.5.1 release
           </td>
           <td>Inherited From OOo
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Severity</td>
           <td>normal
           </td>
           <td>enhancement
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Keywords</td>
           <td>
                
           </td>
           <td>difficultyBeginner, easyHack, skillCpp
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Hardware</td>
           <td>x86-64 (AMD64)
           </td>
           <td>All
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Windows: Command line bulk conversion including wildcards (*?) not working"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=48413#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Windows: Command line bulk conversion including wildcards (*?) not working"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=48413">bug 48413</a>
              from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
        <pre>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

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

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] <a href="https://ask.libreoffice.org/en/question/86800">https://ask.libreoffice.org/en/question/86800</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>