I have a TCL/TK app on Windows. What is the best way to open a file with its associated program? For example, I am generating a PDF, and I want it to open automatically.
I would write (for Tcl 8.5)
exec {*}[auto_execok start] "" $filename
(discussion here). That may display a cmd window though.
If you have an earlier Tcl,
eval exec [auto_execok start] {""} [list $filename]