At 10:51 11/04/2014 -0500, Joe Bonly wrote:
I finally got the batch file to work.
My final code is:
for %%f in (*.htm) do (
"C:\Program Files (x86)\LibreOffice 4\program\soffice.exe" --headless
--convert-to html:"HTML" --outdir
"C:\Users\Joe\Clare\MCSLT\OutputHtmlFiles" %%f
)
In my batch file above, I had to use the absolute path of
soffice.exe to get the batch file to work. I tried putting
"C:\Program Files (x86)\LibreOffice 4\program\soffice.exe" in my
%path% environment variable, so that I could simply call soffice.exe
in the batch file, but this caused Firefox to crash on
startup! What a bizarre problem.
It's no so bizarre: the PATH environment variable takes paths, not
file names. If you'd put
C:\Program Files (x86)\LibreOffice 4\program
there - without the file name "soffice.exe" - it would have
worked. When it finds just "soffice.exe" in your batch file, the
system will search the appropriate directory (amongst others) to find it.
I have successfully modified the %path% variable before, by adding
"C:\Python34" and had no problems.
Exactly: a path, not a file name.
Anyway...maybe someone is interested in this apparent conflict
between soffice.exe in %path% and Firefox?
Putting a file name there instead of a path is likely to cause confusion ...
The important thing is, the batch script works ...
Good-oh! What you did was a perfectly acceptable alternative, of course.
I trust this helps.
Brian Barker
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.