无忧启动论坛

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

[分享] Microsoft Edge 数据存放脚本

[复制链接]
跳转到指定楼层
1#
发表于 2021-8-28 21:30:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 chishingchan 于 2022-2-17 09:15 编辑

Edge x64 for Windows 7
Edge x86 for Windows 7

EdgeDir.inf
  1. [Version]
  2. Signature="$WINDOWS NT$"

  3. [DefaultInstall]
  4. AddReg=添加注册表

  5. [添加注册表]
  6. HKLM,"SOFTWARE\Policies\Microsoft\Edge","DiskCacheDir",,"%16389%\User Data\Disk Cache"
  7. HKLM,"SOFTWARE\Policies\Microsoft\Edge","UserDataDir",,"%16389%\User Data"
复制代码


----------------------------------------------------淘汰线----------------------------------------------------
  1. @echo off
  2. cd /d %~dp0
  3. :: 检测我的文档位置
  4. for /f "tokens=3*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal" ^|findstr "Documents"') do set Personal=%%a

  5. :: 设置默认浏览器
  6. "%cd%\92.0.902.84\msedge.exe" --make-default-browser

  7. :: 添加用户数据目录参数
  8. reg add "HKCU\Software\Classes\ftp\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --user-data-dir="%Personal%\User Data" --disk-cache-dir="%Personal%\User Data" -- "%%1"">nul 2>nul
  9. reg add "HKCU\Software\Classes\http\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --user-data-dir="%Personal%\User Data" --disk-cache-dir="%Personal%\User Data" -- "%%1"">nul 2>nul
  10. reg add "HKCU\Software\Classes\https\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --user-data-dir="%Personal%\User Data" --disk-cache-dir="%Personal%\User Data" -- "%%1"">nul 2>nul
  11. reg add "HKCU\Software\Classes\read\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --user-data-dir="%Personal%\User Data" --disk-cache-dir="%Personal%\User Data" -- "%%1"">nul 2>nul
  12. reg add "HKLM\SOFTWARE\Classes\.htm\OpenWithProgIds" /f /v "MSEdgeHTM" /t REG_SZ /d "">nul 2>nul
  13. reg add "HKLM\SOFTWARE\Classes\.html\OpenWithProgIds" /f /v "MSEdgeHTM" /t REG_SZ /d "">nul 2>nul
  14. reg add "HKLM\SOFTWARE\Classes\.mht\OpenWithProgIds" /f /v "MSEdgeMHT" /t REG_SZ /d "">nul 2>nul
  15. reg add "HKLM\SOFTWARE\Classes\.mhtml\OpenWithProgIds" /f /v "MSEdgeMHT" /t REG_SZ /d "">nul 2>nul
  16. reg add "HKLM\SOFTWARE\Classes\.pdf\OpenWithProgids" /f /v "MSEdgePDF" /t REG_SZ /d "">nul 2>nul
  17. reg add "HKLM\SOFTWARE\Classes\.shtml\OpenWithProgids" /f /v "MSEdgeHTM" /t REG_SZ /d "">nul 2>nul
  18. reg add "HKLM\SOFTWARE\Classes\.svg\OpenWithProgIds" /f /v "MSEdgeHTM" /t REG_SZ /d "">nul 2>nul
  19. reg add "HKLM\SOFTWARE\Classes\.webp\OpenWithProgids" /f /v "MSEdgeHTM" /t REG_SZ /d "">nul 2>nul
  20. reg add "HKLM\SOFTWARE\Classes\.xht\OpenWithProgIds" /f /v "MSEdgeHTM" /t REG_SZ /d "">nul 2>nul
  21. reg add "HKLM\SOFTWARE\Classes\.xhtml\OpenWithProgIds" /f /v "MSEdgeHTM" /t REG_SZ /d "">nul 2>nul
  22. reg add "HKLM\SOFTWARE\Classes\microsoft-edge" /f /v "URL Protocol" /t REG_SZ /d "">nul 2>nul
  23. reg add "HKLM\SOFTWARE\Classes\microsoft-edge" /f /ve /t REG_SZ /d "URL:microsoft-edge">nul 2>nul
  24. reg add "HKLM\SOFTWARE\Classes\microsoft-edge\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" "%%1"">nul 2>nul
  25. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM" /f /ve /t REG_SZ /d "Microsoft Edge HTML Document">nul 2>nul
  26. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\Application" /f /v "ApplicationCompany" /t REG_SZ /d "Microsoft Corporation">nul 2>nul
  27. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\Application" /f /v "ApplicationDescription" /t REG_SZ /d "浏览 Web">nul 2>nul
  28. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\Application" /f /v "ApplicationIcon" /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe,0">nul 2>nul
  29. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\Application" /f /v "ApplicationName" /t REG_SZ /d "Microsoft Edge">nul 2>nul
  30. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\Application" /f /v "AppUserModelId" /t REG_SZ /d "MSEdge">nul 2>nul
  31. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\DefaultIcon" /f /ve /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe,0">nul 2>nul
  32. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --user-data-dir="%Personal%\User Data" --disk-cache-dir="%Personal%\User Data" -- "%%1"">nul 2>nul
  33. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\shell\runas" /f /v "ProgrammaticAccessOnly" /t REG_SZ /d "">nul 2>nul
  34. reg add "HKLM\SOFTWARE\Classes\MSEdgeHTM\shell\runas\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --do-not-de-elevate --single-argument %%1">nul 2>nul
  35. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT" /f /ve /t REG_SZ /d "Microsoft Edge MHT Document">nul 2>nul
  36. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\Application" /f /v "ApplicationCompany" /t REG_SZ /d "Microsoft Corporation">nul 2>nul
  37. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\Application" /f /v "ApplicationDescription" /t REG_SZ /d "浏览 Web">nul 2>nul
  38. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\Application" /f /v "ApplicationIcon" /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe,0">nul 2>nul
  39. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\Application" /f /v "ApplicationName" /t REG_SZ /d "Microsoft Edge">nul 2>nul
  40. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\Application" /f /v "AppUserModelId" /t REG_SZ /d "MSEdge">nul 2>nul
  41. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\DefaultIcon" /f /ve /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe,0">nul 2>nul
  42. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --single-argument %%1">nul 2>nul
  43. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\shell\runas" /f /v "ProgrammaticAccessOnly" /t REG_SZ /d "">nul 2>nul
  44. reg add "HKLM\SOFTWARE\Classes\MSEdgeMHT\shell\runas\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --do-not-de-elevate --single-argument %%1">nul 2>nul
  45. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF" /f /ve /t REG_SZ /d "Microsoft Edge PDF Document">nul 2>nul
  46. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\Application" /f /v "ApplicationCompany" /t REG_SZ /d "Microsoft Corporation">nul 2>nul
  47. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\Application" /f /v "ApplicationDescription" /t REG_SZ /d "浏览 Web">nul 2>nul
  48. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\Application" /f /v "ApplicationIcon" /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe,0">nul 2>nul
  49. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\Application" /f /v "ApplicationName" /t REG_SZ /d "Microsoft Edge">nul 2>nul
  50. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\Application" /f /v "AppUserModelId" /t REG_SZ /d "MSEdge">nul 2>nul
  51. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\DefaultIcon" /f /ve /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe,13">nul 2>nul
  52. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --user-data-dir="%Personal%\User Data" --disk-cache-dir="%Personal%\User Data" -- "%%1"">nul 2>nul
  53. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\shell\runas" /f /v "ProgrammaticAccessOnly" /t REG_SZ /d "">nul 2>nul
  54. reg add "HKLM\SOFTWARE\Classes\MSEdgePDF\shell\runas\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --do-not-de-elevate --single-argument %%1">nul 2>nul
  55. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge" /f /ve /t REG_SZ /d "Microsoft Edge">nul 2>nul
  56. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities" /f /v "ApplicationDescription" /t REG_SZ /d "Microsoft Edge 是以闪电速度运行网页和应用程序的 Web 浏览器。它快速、稳定而且易于使用。通过 Microsoft Edge 中内置的恶意软件和网络钓鱼防护可以更安全地浏览网站。">nul 2>nul
  57. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities" /f /v "ApplicationIcon" /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe,0">nul 2>nul
  58. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities" /f /v "ApplicationName" /t REG_SZ /d "Microsoft Edge">nul 2>nul
  59. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".htm" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  60. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".html" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  61. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".mht" /t REG_SZ /d "MSEdgeMHT">nul 2>nul
  62. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".mhtml" /t REG_SZ /d "MSEdgeMHT">nul 2>nul
  63. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".pdf" /t REG_SZ /d "MSEdgePDF">nul 2>nul
  64. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".shtml" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  65. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".svg" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  66. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".webp" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  67. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".xht" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  68. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\FileAssociations" /f /v ".xhtml" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  69. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\Startmenu" /f /v "StartMenuInternet" /t REG_SZ /d "Microsoft Edge">nul 2>nul
  70. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "ftp" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  71. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "http" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  72. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "https" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  73. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "irc" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  74. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "mailto" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  75. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "microsoft-edge" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  76. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "microsoft-edge-holographic" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  77. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "mms" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  78. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "ms-xbl-3d8b930f" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  79. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "news" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  80. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "nntp" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  81. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "read" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  82. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "sms" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  83. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "smsto" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  84. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "snews" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  85. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "tel" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  86. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "urn" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  87. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\Capabilities\URLAssociations" /f /v "webcal" /t REG_SZ /d "MSEdgeHTM">nul 2>nul
  88. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\DefaultIcon" /f /ve /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe,0">nul 2>nul
  89. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\InstallInfo" /f /v "HideIconsCommand" /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --hide-icons">nul 2>nul
  90. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\InstallInfo" /f /v "IconsVisible" /t REG_DWORD /d 1>nul 2>nul
  91. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\InstallInfo" /f /v "ReinstallCommand" /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --make-default-browser">nul 2>nul
  92. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\InstallInfo" /f /v "ShowIconsCommand" /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --show-icons">nul 2>nul
  93. reg add "HKLM\SOFTWARE\Clients\StartMenuInternet\Microsoft Edge\shell\open\command" /f /ve /t REG_SZ /d ""%cd%\92.0.902.84\msedge.exe" --user-data-dir="%Personal%\User Data" --disk-cache-dir="%Personal%\User Data"">nul 2>nul
  94. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe" /f /v "Path" /t REG_SZ /d "%cd%">nul 2>nul
  95. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe" /f /ve /t REG_SZ /d "%cd%\92.0.902.84\msedge.exe">nul 2>nul

  96. :: 添加桌面快捷方式
  97. :: del /f /q "%PUBLIC%\Desktop\Microsoft Edge.lnk">nul 2>nul
  98. mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\Microsoft Edge.lnk""):b.IconLocation=""%cd%\92.0.902.84\msedge.exe,0"":b.TargetPath=""%cd%\92.0.902.84\msedge.exe"":b.Arguments=""--user-data-dir=""""%Personal%\User Data"""" --disk-cache-dir=""""%Personal%\User Data"""""":b.Save:close")>nul
  99. pause
复制代码


评分

参与人数 1无忧币 +5 收起 理由
2011jia98777 + 5 赞一个!

查看全部评分

2#
发表于 2021-8-28 22:12:33 | 只看该作者
能不能自动加上一些插件?比如:
关闭标签的Close Tabs 1.2
IE兼容性补丁IE Based tab 14.3.20.1
复制网页内容SimpleAllowCopy
....

点评

Edge已经自带IE兼容模式了,不需要第三方扩展程序。  详情 回复 发表于 2021-8-29 11:57
回复

使用道具 举报

3#
发表于 2021-8-29 08:48:03 | 只看该作者
自动联网安装EDGE吗
回复

使用道具 举报

4#
发表于 2021-8-29 09:06:18 | 只看该作者
可以把版本号改成自动的,后面更新就不用每次都去替换了
回复

使用道具 举报

5#
发表于 2021-8-29 11:57:53 | 只看该作者
9zhmke 发表于 2021-8-28 22:12
能不能自动加上一些插件?比如:
关闭标签的Close Tabs 1.2
IE兼容性补丁IE Based tab 14.3.20.1

Edge已经自带IE兼容模式了,不需要第三方扩展程序。

评分

参与人数 1无忧币 +5 收起 理由
9zhmke + 5 赞一个!

查看全部评分

回复

使用道具 举报

6#
发表于 2021-8-29 15:39:57 | 只看该作者
Edge的批处理是何意?做绿色版?
回复

使用道具 举报

7#
发表于 2021-8-29 23:44:44 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

8#
发表于 2021-9-1 13:56:01 来自手机 | 只看该作者
我记得官网的双击就全好了

点评

官网安装的位置、资料数据都被固定!对于影子系统来说不太理想。  详情 回复 发表于 2021-9-1 16:30
回复

使用道具 举报

9#
 楼主| 发表于 2021-9-1 16:30:54 | 只看该作者
江南一根葱 发表于 2021-9-1 13:56
我记得官网的双击就全好了

官网安装的位置、资料数据都被固定!对于影子系统来说不太理想。
回复

使用道具 举报

10#
发表于 2021-9-6 16:35:08 | 只看该作者
感谢大大辛苦分享!
回复

使用道具 举报

11#
发表于 2021-9-24 09:00:46 | 只看该作者
是否可以自定义导入书签?
回复

使用道具 举报

12#
发表于 2021-10-6 15:34:50 | 只看该作者
顶起来
回复

使用道具 举报

13#
发表于 2021-10-11 12:28:23 | 只看该作者
谢谢!太好用了!!
回复

使用道具 举报

14#
发表于 2021-10-15 11:54:42 | 只看该作者
不错不错!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-11-23 11:41

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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