Much appreciate all that info.
Firstly I hope the Lyx website can add the Export->HTML (etc) to their list of Known Bugs. Save a lot of grief. If its there, appologies I could not see it. Now onto the work around. The Lyx 1.4.2 all-in-one install puts all these in the Lyx Path Prefix: C:\Program Files\LyX14\latextools;C:\Program Files\LyX14\python;C:\Program Files\LyX14\shell\bin;C:\texmf\miktex\bin;C:\Program Files\gs\gs8.54\bin;C:\Program Files\ImageMagick-6.2.8-Q16 This is my env path value: PATH=c:\program files\imagemagick-6.2.8-q16;C:\texmf\miktex\bin;C:\Perl\bin\;C:\WINDOWS\ system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d ev\Bu ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSD ev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi n;C:\Program Files\LyX14\python PATH=c:\program files\imagemagick-6.2.8-q16;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS; C:\WINDOWS\System32\Wbem;C:\Progra m Files\Common Files\GTK\2.0\bin\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\projects\clarite\trunk\xercesc\Xerces-C_3_0_0_d ev\Bu ild\Win32\VC8\Release;C:\tools;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSD ev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\gs\gs8.54\bi n;C:\Program Files\ImageMagick-6.2.8-Q16;C:\Program Files\LyX14\python The Miktex directory with the Lyx bundle is: C:\texmf\miktex\bin If I type "convert" I get the ImageMagick one. I also have installed the latest Miktex 2.5 beta (just now) and tried running htlatex from there. In a separate command window for that I put its own path at front of PATH. Ie. Above path prefixed with: C:\Program Files\MiKTeX 2.5\miktex\bin In both the bundle and the beta Miktex environments (which use the same ImageMagick and GS paths) I get the same problem. If I run htlatex.exe .. They both say: C:\texmf\miktex\bin>htlatex c:\docs\newfile1.tex htlatex: the batch script could not be found. C:\PROGRA~1\MIKTEX~1.5\miktex\bin>htlatex c:\docs\newfile1.tex htlatex: The Windows command script file could not be found. If I add an empty htlatex.bat file to both directories, it stops that error, but nothing happens. Ie. It executes that batch file. Why ? What is it with the batch file ? Obviously I am missing some fundamental Miktex piece of the puzzle here, but to be honest both installs were smooth as. Any ideas ? Cheers Dean. -----Original Message----- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Friday, 14 July 2006 4:09 PM To: Dean O'Connor Subject: Re: Export/View to HTML/Word/OO.Writer not working at all Dean O'Connor wrote: > > Now this thread talks about same problem and someone gives a > workaround, but that work around doesn't seem to work. > > http://www.mail-archive.com/lyx-users@lists.lyx.org/msg48496.html > > If I type that dos command I get this error: "htlatex: the batch > script could not be found." > I have tried adding C:\texmf\miktex\bin to my PATH. > You don't have Imagemagick and/or Ghostscript in your Windows Path or they are not installed. Imagemagick uses convert.exe and I think Ghostscript uses gswin32c.exe. GSview is gsview32.exe which may be optional but very useful... Or you have conflicts from other installed programs that use different versions of these same filenamed commands. Move the others to the end of your Path. You can find duplicates with the Windows Search tool. The export to html is broken in LyX. But not the export to .tex. Run htlatex on the exported .tex file. Running htlatex from the command line is not broken, not a bug; if it doesn't work the problem is how your system is set up. Regards, Stephen