右键新建office文档

[size=large][/size]装了Office2003,但是却发现在右键新建不了文件,在网上搜了些代码,将下面的每段输入到一个.reg注册表文件,再运行就行了。

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.doc]
@="Word.Document.8"
"Content Type"="application/msword"
[HKEY_CLASSES_ROOT\.doc\OpenWithList]
[HKEY_CLASSES_ROOT\.doc\OpenWithList\WordPad.exe]
@=""
[HKEY_CLASSES_ROOT\.doc\PersistentHandler]
@="{98de59a0-d175-11cd-a7bd-00006b827d94}"
[HKEY_CLASSES_ROOT\.doc\ShellNew]
[HKEY_CLASSES_ROOT\.doc\Word.Document.6]
[HKEY_CLASSES_ROOT\.doc\Word.Document.6\ShellNew]
"FileName"="winword.doc"
[HKEY_CLASSES_ROOT\.doc\Word.Document.8]
[HKEY_CLASSES_ROOT\.doc\Word.Document.8\ShellNew]
"FileName"="winword8.doc"
[HKEY_CLASSES_ROOT\.doc\WordDocument]
[HKEY_CLASSES_ROOT\.doc\WordDocument\ShellNew]
"FileName"="winword2.doc"
[HKEY_CLASSES_ROOT\.doc\WordPad.Document.1]
[HKEY_CLASSES_ROOT\.doc\WordPad.Document.1\ShellNew]
"NullFile"=""
然后保存,关闭后将.TXT拓展名改成.reg   然后执行,我也忘记弹出什么了 确定确定之后重启就有了
比改注册表东西简单多了
-----------------------------------
以下是新建EXCEL文档的注册信息(.xls)
-----------------------------------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.xls]
"Content Type"="application/vnd.ms-excel"
@="Excel.Sheet.8"
[HKEY_CLASSES_ROOT\.xls\Excel.Sheet.5]
[HKEY_CLASSES_ROOT\.xls\Excel.Sheet.5\ShellNew]
"FileName"="excel.xls"
[HKEY_CLASSES_ROOT\.xls\Excel.Sheet.8]
@=""
[HKEY_CLASSES_ROOT\.xls\Excel.Sheet.8\ShellNew]
"FileName"="excel9.xls"
[HKEY_CLASSES_ROOT\.xls\ExcelWorksheet]
[HKEY_CLASSES_ROOT\.xls\ExcelWorksheet\ShellNew]
"FileName"="excel4.xls"
[HKEY_CLASSES_ROOT\.xls\PersistentHandler]
@="{98de59a0-d175-11cd-a7bd-00006b827d94}"
-----------------------------------
以下是powerpiont幻灯片文档的注册信息(.ppt)
-----------------------------------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.ppt]
"Content Type"="application/vnd.ms-powerpoint"
@="PowerPoint.Show.8"
[HKEY_CLASSES_ROOT\.ppt\PersistentHandler]
@="{98de59a0-d175-11cd-a7bd-00006b827d94}"
[HKEY_CLASSES_ROOT\.ppt\PowerPoint.Show.4]
[HKEY_CLASSES_ROOT\.ppt\PowerPoint.Show.4\ShellNew]
"FileName"="powerpnt.ppt"
[HKEY_CLASSES_ROOT\.ppt\PowerPoint.Show.8]
[HKEY_CLASSES_ROOT\.ppt\PowerPoint.Show.8\ShellNew]
"FileName"="pwrpnt11.pot"

 

你可能感兴趣的:(windows,Excel,Office)