Question re opening files from TCL script with the same programs as done from Windows Explorer

Posted by rl_345 on 2016-06-08 02:32

Hello everyone,

I have a list of files of different types in a script (docx, jpg, pdf, etc) and want to invoke them by double-clicking on them, just as I do from windows explorer - with the same programs as it is done there(e.g., .docs with MS-Word, pdf with Adobe Acrobat Reader, etc).

My question - how can I pass the information from Windows to my TCL script with which program to open each file type?