> Not if you use "start" as viewer of any file that is supported by
> windows (the problem is to discover that).

start is a DOS command (as far as I know). In a cmd windows, start can
open a file using its associated application. However, I tried to use
"start $$i" or "cmd /c start $$i" for pdf format and did not get it
work. A shell window is started instead.

> Could you point us to the API? I found ShellExecute, but I did not
> find a way to tell whether a file format is handled.

I am not quite sure. There are ShellExecute, ShellExecuteEx, WinExec.
According to 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp
, ShellExecute should just work. A <32 return value indicates failure
to open a file, but this is not lyx' fault so we do not have to worry
about it.

Bo

Reply via email to