How to change filetype association in the registry?

后端 未结 4 598
眼角桃花
眼角桃花 2020-12-01 14:56

first time posting in StackOverflow. :D I need my software to add a couple of things in the registry.

My program will use

Process.Star

4条回答
  •  忘掉有多难
    2020-12-01 15:25

    In addition to the answers already provided, you can accomplish this by calling the command line programs "ASSOC" and "FTYPE". FTYPE associates a file type with a program. ASSOC associates a file extension with the file type specified through FTYPE. For example:

    FTYPE SMCFile="C:\some_path\SMCProgram.exe" -some_option %1 %*
    ASSOC .smc=SMCFile
    

    This will make the necessary entries in the registry. For more information, type ASSOC /? or FTYPE /? at the command prompt.

提交回复
热议问题