无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 1845|回复: 0
打印 上一主题 下一主题

[求助] 关于WIN8 32 PE,文件关联问题,求救,谢谢

[复制链接]
跳转到指定楼层
1#
发表于 2014-5-21 10:48:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我看到别人的PE pecmd.ini中有这么一段
EXEC !%SystemDrive%\Program Files\文件工具\7-Zip\REGDOC.CMD
关联了压缩文件,
请问REGDOC.CMD内的内容是如何得到的?
如果我想用spread32关联office excel 也就.xls文件,用atlantis关联office word也就.doc 文件
应该怎么做?谢谢


REGDOC.CMD内容如下
  1. REM 这个 REGDOC.CMD 是用来设置外挂程序与其文档的关联,如果没有实现关联,可以手动运行这个批处理。

  2. PUSHD %~dp0
  3. SET TP=%CD%
  4. PATH "%WINDIR%\SYSTEM32"


  5. rem 关联7z右键
  6. reg add "HKCU\Software\7-ZIP\Compression" /f /v "Level" /t REG_DWORD /d 5
  7. reg add "HKCU\Software\7-ZIP\Compression" /f /v "Archiver" /t REG_SZ /d "7z"
  8. reg add "HKCU\Software\7-ZIP\Compression" /f /v "ShowPassword" /t REG_DWORD /d 0
  9. reg add "HKCU\Software\7-ZIP\Compression" /f /v "EncryptHeaders" /t REG_DWORD /d 0
  10. reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "Method" /t REG_SZ /d "LZMA"
  11. reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "Level" /t REG_DWORD /d 9
  12. reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "Dictionary" /t REG_DWORD /d 16777216
  13. reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "Order" /t REG_DWORD /d 64
  14. reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "BlockSize" /t REG_DWORD /d 32
  15. reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "NumThreads" /t REG_DWORD /d 1
  16. reg add "HKCU\Software\7-ZIP\Options" /f /v "CascadedMenu" /t REG_DWORD /d 1
  17. reg add "HKCU\Software\7-ZIP\Options" /f /v "ContextMenu" /t REG_DWORD /d 16151
  18. reg add "HKCU\Software\7-ZIP\Options" /f /v "WorkDirType" /t REG_DWORD /d 1
  19. reg add "HKCU\Software\7-ZIP\Options" /f /v "WorkDirPath" /t REG_SZ /d ""
  20. reg add "HKCU\Software\7-ZIP\Options" /f /v "TempRemovableOnly" /t REG_DWORD /d 0
  21. reg add "HKU\.DEFAULT\SessionInformation" /f /v "ProgramCount" /t REG_DWORD /d 4
  22. reg add "HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
  23. reg add "HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}" /f /ve /t REG_SZ /d "7-Zip Shell Extension"
  24. reg add "HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32" /f /ve /t REG_SZ /d "%TP%\7-zip.dll"
  25. reg add "HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
  26. reg add "HKLM\SOFTWARE\Classes\Directory\shellex\DragDropHandlers\7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
  27. reg add "HKLM\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
  28. reg add "HKLM\SOFTWARE\Classes\Drive\shellex\DragDropHandlers\7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
  29. reg add "HKLM\SOFTWARE\Microsoft\Cryptography\RNG" /f /v "Seed" /t REG_BINARY /d ae980bee38a3f51bba1e2a2620869cd4140359f701aff4cc6d90c3dacb7a58e26176a8a8d517c1ca0a19aff67e65b7ea2580d530b236cc02f57234b8acc6629bfef9fece90743d5d47134f8a5e15d12b
  30. reg add "HKLM\SOFTWARE\Classes\.7z" /f /ve /t REG_SZ /d "7-Zip.7z"
  31. reg add "HKLM\SOFTWARE\Classes\.arj" /f /ve /t REG_SZ /d "7-Zip.arj"
  32. reg add "HKLM\SOFTWARE\Classes\.bz2" /f /ve /t REG_SZ /d "7-Zip.bz2"
  33. reg add "HKLM\SOFTWARE\Classes\.bzip2" /f /ve /t REG_SZ /d "7-Zip.bzip2"
  34. reg add "HKLM\SOFTWARE\Classes\.cab" /f /ve /t REG_SZ /d "7-Zip.cab"
  35. reg add "HKLM\SOFTWARE\Classes\.cpio" /f /ve /t REG_SZ /d "7-Zip.cpio"
  36. reg add "HKLM\SOFTWARE\Classes\.gz" /f /ve /t REG_SZ /d "7-Zip.gz"
  37. reg add "HKLM\SOFTWARE\Classes\.gzip" /f /ve /t REG_SZ /d "7-Zip.gzip"
  38. reg add "HKLM\SOFTWARE\Classes\.lzh" /f /ve /t REG_SZ /d "7-Zip.lzh"
  39. reg add "HKLM\SOFTWARE\Classes\.lzma" /f /ve /t REG_SZ /d "7-Zip.lzma"
  40. reg add "HKLM\SOFTWARE\Classes\.rar" /f /ve /t REG_SZ /d "7-Zip.rar"
  41. reg add "HKLM\SOFTWARE\Classes\.rpm" /f /ve /t REG_SZ /d "7-Zip.rpm"
  42. reg add "HKLM\SOFTWARE\Classes\.tar" /f /ve /t REG_SZ /d "7-Zip.tar"
  43. reg add "HKLM\SOFTWARE\Classes\.taz" /f /ve /t REG_SZ /d "7-Zip.taz"
  44. reg add "HKLM\SOFTWARE\Classes\.tbz" /f /ve /t REG_SZ /d "7-Zip.tbz"
  45. reg add "HKLM\SOFTWARE\Classes\.tbz2" /f /ve /t REG_SZ /d "7-Zip.tbz2"
  46. reg add "HKLM\SOFTWARE\Classes\.vhd" /f /ve /t REG_SZ /d "7-Zip.vhd"
  47. reg add "HKLM\SOFTWARE\Classes\.zip" /f /ve /t REG_SZ /d "7-Zip.zip"
  48. reg add "HKLM\SOFTWARE\Classes\7-Zip.7z" /f /ve /t REG_SZ /d ".7z 压缩文件"
  49. reg add "HKLM\SOFTWARE\Classes\7-Zip.7z\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,0"
  50. reg add "HKLM\SOFTWARE\Classes\7-Zip.7z\shell" /f /ve /t REG_SZ /d ""
  51. reg add "HKLM\SOFTWARE\Classes\7-Zip.7z\shell\open" /f /ve /t REG_SZ /d ""
  52. reg add "HKLM\SOFTWARE\Classes\7-Zip.7z\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  53. reg add "HKLM\SOFTWARE\Classes\7-Zip.arj" /f /ve /t REG_SZ /d ".arj 压缩文件"
  54. reg add "HKLM\SOFTWARE\Classes\7-Zip.arj\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,4"
  55. reg add "HKLM\SOFTWARE\Classes\7-Zip.arj\shell" /f /ve /t REG_SZ /d ""
  56. reg add "HKLM\SOFTWARE\Classes\7-Zip.arj\shell\open" /f /ve /t REG_SZ /d ""
  57. reg add "HKLM\SOFTWARE\Classes\7-Zip.arj\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  58. reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2" /f /ve /t REG_SZ /d ".bz2 压缩文件"
  59. reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,2"
  60. reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2\shell" /f /ve /t REG_SZ /d ""
  61. reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2\shell\open" /f /ve /t REG_SZ /d ""
  62. reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  63. reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2" /f /ve /t REG_SZ /d ".bzip2 压缩文件"
  64. reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,2"
  65. reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2\shell" /f /ve /t REG_SZ /d ""
  66. reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2\shell\open" /f /ve /t REG_SZ /d ""
  67. reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  68. reg add "HKLM\SOFTWARE\Classes\7-Zip.cab" /f /ve /t REG_SZ /d ".cab 压缩文件"
  69. reg add "HKLM\SOFTWARE\Classes\7-Zip.cab\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,7"
  70. reg add "HKLM\SOFTWARE\Classes\7-Zip.cab\shell" /f /ve /t REG_SZ /d ""
  71. reg add "HKLM\SOFTWARE\Classes\7-Zip.cab\shell\open" /f /ve /t REG_SZ /d ""
  72. reg add "HKLM\SOFTWARE\Classes\7-Zip.cab\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  73. reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio" /f /ve /t REG_SZ /d ".cpio 压缩文件"
  74. reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,12"
  75. reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio\shell" /f /ve /t REG_SZ /d ""
  76. reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio\shell\open" /f /ve /t REG_SZ /d ""
  77. reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  78. reg add "HKLM\SOFTWARE\Classes\7-Zip.gz" /f /ve /t REG_SZ /d ".gz 压缩文件"
  79. reg add "HKLM\SOFTWARE\Classes\7-Zip.gz\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,14"
  80. reg add "HKLM\SOFTWARE\Classes\7-Zip.gz\shell" /f /ve /t REG_SZ /d ""
  81. reg add "HKLM\SOFTWARE\Classes\7-Zip.gz\shell\open" /f /ve /t REG_SZ /d ""
  82. reg add "HKLM\SOFTWARE\Classes\7-Zip.gz\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  83. reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip" /f /ve /t REG_SZ /d ".gzip 压缩文件"
  84. reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,14"
  85. reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip\shell" /f /ve /t REG_SZ /d ""
  86. reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip\shell\open" /f /ve /t REG_SZ /d ""
  87. reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  88. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh" /f /ve /t REG_SZ /d ".lzh 压缩文件"
  89. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,6"
  90. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh\shell" /f /ve /t REG_SZ /d ""
  91. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh\shell\open" /f /ve /t REG_SZ /d ""
  92. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  93. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma" /f /ve /t REG_SZ /d ".lzma 压缩文件"
  94. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,16"
  95. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma\shell" /f /ve /t REG_SZ /d ""
  96. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma\shell\open" /f /ve /t REG_SZ /d ""
  97. reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  98. reg add "HKLM\SOFTWARE\Classes\7-Zip.rar" /f /ve /t REG_SZ /d ".rar 压缩文件"
  99. reg add "HKLM\SOFTWARE\Classes\7-Zip.rar\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,3"
  100. reg add "HKLM\SOFTWARE\Classes\7-Zip.rar\shell" /f /ve /t REG_SZ /d ""
  101. reg add "HKLM\SOFTWARE\Classes\7-Zip.rar\shell\open" /f /ve /t REG_SZ /d ""
  102. reg add "HKLM\SOFTWARE\Classes\7-Zip.rar\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  103. reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm" /f /ve /t REG_SZ /d ".rpm 压缩文件"
  104. reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,10"
  105. reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm\shell" /f /ve /t REG_SZ /d ""
  106. reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm\shell\open" /f /ve /t REG_SZ /d ""
  107. reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  108. reg add "HKLM\SOFTWARE\Classes\7-Zip.tar" /f /ve /t REG_SZ /d ".tar 压缩文件"
  109. reg add "HKLM\SOFTWARE\Classes\7-Zip.tar\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,13"
  110. reg add "HKLM\SOFTWARE\Classes\7-Zip.tar\shell" /f /ve /t REG_SZ /d ""
  111. reg add "HKLM\SOFTWARE\Classes\7-Zip.tar\shell\open" /f /ve /t REG_SZ /d ""
  112. reg add "HKLM\SOFTWARE\Classes\7-Zip.tar\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  113. reg add "HKLM\SOFTWARE\Classes\7-Zip.taz" /f /ve /t REG_SZ /d ".taz 压缩文件"
  114. reg add "HKLM\SOFTWARE\Classes\7-Zip.taz\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,5"
  115. reg add "HKLM\SOFTWARE\Classes\7-Zip.taz\shell" /f /ve /t REG_SZ /d ""
  116. reg add "HKLM\SOFTWARE\Classes\7-Zip.taz\shell\open" /f /ve /t REG_SZ /d ""
  117. reg add "HKLM\SOFTWARE\Classes\7-Zip.taz\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  118. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz" /f /ve /t REG_SZ /d ".tbz 压缩文件"
  119. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,2"
  120. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz\shell" /f /ve /t REG_SZ /d ""
  121. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz\shell\open" /f /ve /t REG_SZ /d ""
  122. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  123. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2" /f /ve /t REG_SZ /d ".tbz2 压缩文件"
  124. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,2"
  125. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2\shell" /f /ve /t REG_SZ /d ""
  126. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2\shell\open" /f /ve /t REG_SZ /d ""
  127. reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  128. reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd" /f /ve /t REG_SZ /d ".vhd 压缩文件"
  129. reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,20"
  130. reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd\shell" /f /ve /t REG_SZ /d ""
  131. reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd\shell\open" /f /ve /t REG_SZ /d ""
  132. reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  133. reg add "HKLM\SOFTWARE\Classes\7-Zip.zip" /f /ve /t REG_SZ /d ".zip 压缩文件"
  134. reg add "HKLM\SOFTWARE\Classes\7-Zip.zip\DefaultIcon" /f /ve /t REG_SZ /d "%TP%\7z.dll,1"
  135. reg add "HKLM\SOFTWARE\Classes\7-Zip.zip\shell" /f /ve /t REG_SZ /d ""
  136. reg add "HKLM\SOFTWARE\Classes\7-Zip.zip\shell\open" /f /ve /t REG_SZ /d ""
  137. reg add "HKLM\SOFTWARE\Classes\7-Zip.zip\shell\open\command" /f /ve /t REG_SZ /d ""%TP%\7zFM.exe" "%%1""
  138. reg add "HKU\.DEFAULT\Software\7-Zip\Options" /f /v "CascadedMenu" /t REG_DWORD /d 1
  139. reg add "HKU\.DEFAULT\Software\7-Zip\Options" /f /v "ContextMenu" /t REG_DWORD /d 4919


  140. :END
  141. EXIT
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-12-1 16:52

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表