What is the best way to open a file with its associated application from TCL?

前端 未结 3 1106
太阳男子
太阳男子 2021-01-25 07:49

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.

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-25 08:51

    For the records: Using the Tcl extension TWAPI, one might also want to look at:

    twapi::shell_execute -path $filename

提交回复
热议问题