windows给文件夹添加右键用指定软件打开功能

Win + R,输入 regedit,进入注册表

找到位置:HKEY_LOCAL_MACHINESOFTWAREClassesDirectoryshell

以IDEA为例:

  1. 右键shell目录新建项Idea
  2. 右键Idea新建command
  3. 选择Idea 右侧空白出新建字符串 名字为Icon 值填入idea的运行程序地址
  4. 选择command 默认项填入idea的运行程序地址 + 空格 "%1" 这个"%1" 意思是使用文件名打开当前文件
  5. 配置好后重启电脑,或者重启explorer.exe进程
原文地址:https://www.cnblogs.com/wbyixx/p/15292865.html