更新时间:2023-02-08 18:48:53
除了已经提供的答案,你可以通过调用命令行程序ASSOC和FTYPE做到这一点。 FTYPE相关联的程序的文件类型。 ASSOC关联的文件扩展名通过FTYPE指定的文件类型。例如:
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
这将使在注册表中的必要的条目。欲了解更多信息,请键入 ASSOC /?
或 FTYPE /?
在命令提示符下。
This will make the necessary entries in the registry. For more information, type ASSOC /?
or FTYPE /?
at the command prompt.