Script to associate an extension to a program

前端 未结 4 574
后悔当初
后悔当初 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:08

    consider the dos command assoc:

    C:>assoc /? Displays or modifies file extension associations

    ASSOC [.ext[=[fileType]]]

    .ext Specifies the file extension to associate the file type with fileType Specifies the file type to associate with the file extension

    Type ASSOC without parameters to display the current file associations. If ASSOC is invoked with just a file extension, it displays the current file association for that file extension. Specify nothing for the file type and the command will delete the association for the file extension.

提交回复
热议问题