|
这是ms-office的关联代码,加入REGDOC.CMD中。
REG ADD HKLM\SOFTWARE\Classes\.DOC /ve /d Video.DOC /F >nul
REG ADD HKLM\SOFTWARE\Classes\Video.DOC\DefaultIcon /ve /t REG_SZ /d "%TP%\ICON\DOC.ICO" /f>NUL
REG ADD HKLM\SOFTWARE\Classes\Video.DOC\shell\open\command /ve /t REG_SZ /d "\"%TP%\PROGRAM\WORDVIEW.EXE\" "\"%%1\" /f>NUL
REG ADD HKLM\SOFTWARE\Classes\.XLS /ve /d Video.XLS /F >nul
REG ADD HKLM\SOFTWARE\Classes\Video.XLS\DefaultIcon /ve /t REG_SZ /d "%TP%\ICON\XLS.ICO" /f>NUL
REG ADD HKLM\SOFTWARE\Classes\Video.XLS\shell\open\command /ve /t REG_SZ /d "\"%TP%\PROGRAM\XLSVIEW.EXE\" "\"%%1\" /f>NUL
REG ADD HKLM\SOFTWARE\Classes\.PPT /ve /d Video.PPT /F >nul
REG ADD HKLM\SOFTWARE\Classes\Video.PPT\DefaultIcon /ve /t REG_SZ /d "%TP%\ICON\PPT.ICO" /f>NUL
REG ADD HKLM\SOFTWARE\Classes\Video.PPT\shell\open\command /ve /t REG_SZ /d "\"%TP%\PROGRAM\PPTVIEW.EXE\" "\"%%1\" /f>NUL
以上原本是给媒体文件添加关联的,但也使适用于其它文件类型的关联,修改其中的Video.*以添加你要关联的文件类型 |
|