Bernard Delmée
9/26/2003 10:25:00 PM
> (The start dealy is a little bit of magic ... it''s not just in the path,
> or at least not on my machine).
It''s a command internal to the command interpreter which gets
spawned by the backtick operator. This solution has the drawback
of launching a DOS console. A 3d possibility is the following:
require ''Win32API''
SW_SHOWNORMAL = 1
mydoc = ''index.html''
se = Win32API.new(
''shell32'',
''ShellExecute'',
[''L'',''P'',''P'',''P'',''P'',''L''],
''L'' )
se.Call(0,''open'',mydoc,0,0,SW_SHOWNORMAL)
This will launch the correct application associated with
"mydoc", not just html.