日期:2014-05-17  浏览次数:20875 次

win7 在文本文件上 点右键 有个编辑 怎么选择默认程序

如上图,怎么选择编辑的默认打开程序

在regedit里找了很长时间都没找到对应的键值 已经排除的键:
HKEY_CLASSES_ROOT/*
HKEY_CLASSES_ROOT/.txt
HKEY_CLASSES_ROOT/AllFilesystemObjects

------解决方案--------------------
BatchFile code
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt" /f
reg add "HKEY_CLASSES_ROOT\txtfile\shell\edit\command" /ve /t reg_sz /d "c:\windows\system32\cmd.exe" /f