|
|
- @echo off
- @echo ^.LOG>"%~dp0cncnew.dat"
- @echo.>>"%~dp0cncnew.dat"
- @echo ^@echo 弱智制作QQ:yfdzjy@163.com >>"%~dp0cncnew.dat"
- reg add HKCR\.CNC\ShellNew /v FileName /d "%~dp0cncnew.dat" /f
- reg add HKCR\.CNC/ve /d CNCfile /f
- reg add HKCR\CNCfile /ve /d CNC小庄数车文件 /f
- reg add HKCR\CNCfile\shell /ve /d open /f
- reg add HKCR\CNCfile\shell\open\command /ve /t REG_SZ /d "%SystemRoot%\system32\notepad.exe ""%%1""" /f
- reg add HKCR\CNCfile\DefaultIcon /ve /t REG_EXPAND_SZ /d "%~dp0庄.ico" /f
- pause
复制代码
如果右键新建还不能出现,可以运行一下以下两行代码- assoc .CNC=CNCfile
- ftype CNCfile=C:\Windows\system32\notepad.exe "%1"
复制代码
还是不行的话可以结束进程EXPLORER,再重新开启,或运行一下以下代码:- cmd.exe /c taskkill /f /im explorer.exe && start explorer.exe
复制代码 |
|