Stephen Harris <[EMAIL PROTECTED]> writes:

> Well I noticed that latex.exe was rather small and there was a symlink
> to pdfetex.exe. So I tried to tried deleting latex.exe and then copying
> pdfetex.exe to latex.exe but the binary LyX still found latex.exe "not
> useable".

A cleaner solution is the following. If programname.exe is a symlink to
a real binary program, then simply create a programname.bat file and put
it in the ~\LyX\bin directory. This directory is always searched first, and
thus when programname is invoked, programname.bat will be used.

The script programname.bat is the following 3 liner (simply replace
programname with the actual name of the program):

@echo off
sh.exe -c %*
exit

This works when the program is invoked without explicitely giving an
extension, i.e., "programname arg1 ..." instead of "programname.exe arg1...",
as programname.bat is spotted first. Then, when sh is called to execute
the command, it will look for a program whose name is programname.exe and
will spot the right one. As sh understands symlinks, there is no problem
if programname.exe is a symlink. That's all.

-- 
Enrico


Reply via email to