Script to associate an extension to a program

前端 未结 4 576
后悔当初
后悔当初 2020-11-27 05:15

My customer is replacing MS Office with OpenOffice in some workstations. My program export a file to Excel using the .xml extension (using open format) and opens it using th

4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 06:06

    I just came across this whilst searching for the same answer. I found a better solution using the Windows FindExecutable API, that can be used from C# using PInvoke.

    http://www.pinvoke.net/default.aspx/shell32.findexecutable

提交回复
热议问题