装了office 2010后,默认新建菜单中的格式都是不带x的,比如docx就是doc,新建Excel后缀也是xls而不是xlsx。
解决这一问题修改注册表就可以了。将下述代码复制到一个txt文件中,修改后缀txt为reg,导入注册表,刷新桌面,即可实现新建文件默认后缀为docx,xlsx和pptx。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT.doc]
[HKEY_CLASSES_ROOT.xls]
[HKEY_CLASSES_ROOT.ppt]
[HKEY_CLASSES_ROOT.docx]
@="Word.Document.12"
"PerceivedType"="document"
"Content Type"="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
[HKEY_CLASSES_ROOT.docxOpenWithList]
[HKEY_CLASSES_ROOT.docxOpenWithListIllustrator.exe]
@=""
[HKEY_CLASSES_ROOT.docxOpenWithListWordPad.exe]
@=""
[HKEY_CLASSES_ROOT.docxPersistentHandler]
@="{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}"
[HKEY_CLASSES_ROOT.docxShellEx]
[HKEY_CLASSES_ROOT.docxShellExPropertyHandler]
@="{993BE281-6695-4BA5-8A2A-7AACBFAAB69E}"
[HKEY_CLASSES_ROOT.docxShellEx{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}"
[HKEY_CLASSES_ROOT.docxShellEx{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
[HKEY_CLASSES_ROOT.docxWord.Document.12]
[HKEY_CLASSES_ROOT.docxWord.Document.12ShellNew]
"NullFile"=""
[HKEY_CLASSES_ROOT.xlsx]
"Content Type"="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@="Excel.Sheet.12"
"PerceivedType"="document"
[HKEY_CLASSES_ROOT.xlsxExcel.Sheet.12]
[HKEY_CLASSES_ROOT.xlsxExcel.Sheet.12ShellNew]
"FileName"="excel12.xlsx"
[HKEY_CLASSES_ROOT.xlsxPersistentHandler]
@="{4887767F-7ADC-4983-B576-88FB643D6F79}"
[HKEY_CLASSES_ROOT.xlsxshellex]
[HKEY_CLASSES_ROOT.xlsxshellexPropertyHandler]
@="{993BE281-6695-4BA5-8A2A-7AACBFAAB69E}"
[HKEY_CLASSES_ROOT.xlsxshellex{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{00020827-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT.xlsxshellex{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
[HKEY_CLASSES_ROOT.pptx]
"Content Type"="application/vnd.openxmlformats-officedocument.presentationml.presentation"
@="PowerPoint.Show.12"
"PerceivedType"="document"
[HKEY_CLASSES_ROOT.pptxPersistentHandler]
@="{4F46F75F-199F-4C63-8B7D-86D48FE7970C}"
[HKEY_CLASSES_ROOT.pptxPowerPoint.Show.12]
[HKEY_CLASSES_ROOT.pptxPowerPoint.Show.12ShellNew]
"FileName"="pwrpnt12.pptx"
[HKEY_CLASSES_ROOT.pptxshellex]
[HKEY_CLASSES_ROOT.pptxshellexPropertyHandler]
@="{993BE281-6695-4BA5-8A2A-7AACBFAAB69E}"
[HKEY_CLASSES_ROOT.pptxshellex{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{65235197-874B-4A07-BDC5-E65EA825B718}"
[HKEY_CLASSES_ROOT.pptxshellex{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
如果你要后缀默认是doc,ppt,xls的话,导入下面的代码应该就可以了:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT.docx]
[HKEY_CLASSES_ROOT.xlsx]
[HKEY_CLASSES_ROOT.pptx]
[HKEY_CLASSES_ROOT.doc]
@="Word.Document.12"
"PerceivedType"="document"
"Content Type"="application/vnd.openxmlformats-officedocument.wordprocessingml.document"
[HKEY_CLASSES_ROOT.docOpenWithList]
[HKEY_CLASSES_ROOT.docOpenWithListIllustrator.exe]
@=""
[HKEY_CLASSES_ROOT.docOpenWithListWordPad.exe]
@=""
[HKEY_CLASSES_ROOT.docPersistentHandler]
@="{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}"
[HKEY_CLASSES_ROOT.docShellEx]
[HKEY_CLASSES_ROOT.docShellExPropertyHandler]
@="{993BE281-6695-4BA5-8A2A-7AACBFAAB69E}"
[HKEY_CLASSES_ROOT.docShellEx{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}"
[HKEY_CLASSES_ROOT.docShellEx{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
[HKEY_CLASSES_ROOT.docWord.Document.12]
[HKEY_CLASSES_ROOT.docWord.Document.12ShellNew]
"NullFile"=""
[HKEY_CLASSES_ROOT.xls]
"Content Type"="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@="Excel.Sheet.12"
"PerceivedType"="document"
[HKEY_CLASSES_ROOT.xlsExcel.Sheet.12]
[HKEY_CLASSES_ROOT.xlsExcel.Sheet.12ShellNew]
"FileName"="excel12.xls"
[HKEY_CLASSES_ROOT.xlsPersistentHandler]
@="{4887767F-7ADC-4983-B576-88FB643D6F79}"
[HKEY_CLASSES_ROOT.xlsshellex]
[HKEY_CLASSES_ROOT.xlsshellexPropertyHandler]
@="{993BE281-6695-4BA5-8A2A-7AACBFAAB69E}"
[HKEY_CLASSES_ROOT.xlsshellex{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{00020827-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT.xlsshellex{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"
[HKEY_CLASSES_ROOT.ppt]
"Content Type"="application/vnd.openxmlformats-officedocument.presentationml.presentation"
@="PowerPoint.Show.12"
"PerceivedType"="document"
[HKEY_CLASSES_ROOT.pptPersistentHandler]
@="{4F46F75F-199F-4C63-8B7D-86D48FE7970C}"
[HKEY_CLASSES_ROOT.pptPowerPoint.Show.12]
[HKEY_CLASSES_ROOT.pptPowerPoint.Show.12ShellNew]
"FileName"="pwrpnt12.ppt"
[HKEY_CLASSES_ROOT.pptshellex]
[HKEY_CLASSES_ROOT.pptshellexPropertyHandler]
@="{993BE281-6695-4BA5-8A2A-7AACBFAAB69E}"
[HKEY_CLASSES_ROOT.pptshellex{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{65235197-874B-4A07-BDC5-E65EA825B718}"
[HKEY_CLASSES_ROOT.pptshellex{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{C41662BB-1FA0-4CE0-8DC5-9B7F8279FF97}"