win7系统,发现右键新建菜单为空

2024-11-27 09:40:22
推荐回答(2个)
回答1:

  通过批处理添加注册表中关于新建文件的数据即可,方法如下:

  1、点击开始,点击运行,输入notepad,点击确定;

  2、打开记事本输入

  @ECHO off

  reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v Directory /t reg_sz /f


  reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v IconPath /t reg_expand_sz /d "%%SystemRoot%%\system32\shell32.dll,3" /f


  reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v ItemName /t reg_sz /d "@shell32.dll,-30396" /f


  reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v MenuText /t reg_sz /d "@shell32.dll,-30317" /f


  reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v NonLFNFileSpec /t reg_sz /d "@shell32.dll,-30319" /f


  reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew\Config /v AllDrives /t reg_sz /f


  reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew\Config /v IsFolder /t reg_sz /f


  reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew\Config /v NoExtension /t reg_sz /f


  reg add HKEY_USERS\S-1-5-21-950098276-2777319011-3767323484-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew /v Classes /t reg_multi_sz /d ".rtf .txt Folder" /f


  pause


  3、按ctrl+s保存,输入文件名1.bat,保存类型选择所有文件,点击保存;

  4、双击1.bat,运行结束后重启即可。

回答2:

@ECHO off
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v Directory /t reg_sz /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v IconPath /t reg_expand_sz /d "%%SystemRoot%%\system32\shell32.dll,3" /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v ItemName /t reg_sz /d "@shell32.dll,-30396" /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v MenuText /t reg_sz /d "@shell32.dll,-30317" /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew /v NonLFNFileSpec /t reg_sz /d "@shell32.dll,-30319" /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew\Config /v AllDrives /t reg_sz /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew\Config /v IsFolder /t reg_sz /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellNew\Config /v NoExtension /t reg_sz /f

reg add HKEY_USERS\S-1-5-21-950098276-2777319011-3767323484-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew /v Classes /t reg_multi_sz /d ".rtf .txt Folder" /f

pause

把这代码复制到txt文本上,然后另存为.bat文件。 记住一定要是.bat文件。然后用管理员运行就行了