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: [email protected]
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