-
outlook账户配置导出
导出Profiles项,重置账户后再重新执行reg文件导入
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles
-
outlook邮件中的网页链接无法打开
代码拷贝入reg文件执行
| Windows Registry Editor Version 5.00 |
| |
| [HKEY_CURRENT_USER\Software\Classes\.htm] |
| @="htmlfile" |
| [HKEY_CURRENT_USER\Software\Classes\.html] |
| @="htmlfile" |
| [HKEY_CURRENT_USER\Software\Classes\.shtml] |
| @="htmlfile" |
| [HKEY_CURRENT_USER\Software\Classes\.xhtml] |
| @="htmlfile" |
| [HKEY_CURRENT_USER\Software\Classes\.xhtm] |
| @="htmlfile" |
| |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IE.HTTP\shell\open\command] |
| @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %1" |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command] |
| @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %1" |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\htmlfile\shell\opennew\command] |
| @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %1" |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\htmlfile\shell\open\command] |
| @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %1" |
- 批处理脚本关闭flash广告
代码拷贝入bat文件执行
| @echo off |
| taskkill /f /t /im FlashHelperService.exe |
| ping 127.0.0.1 |
| del /f /s /q C:\Windows\SysWOW64\Macromed\Flash\FlashHelperService.exe |
| Reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet |
| Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION" /v "FlashHelperService" /f |
| Reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Flash Helper Service" /f |
| Reg delete "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\Flash Helper Service" /f |
| pause |
- 批处理脚本清除系统垃圾
代码拷贝入bat文件执行
| del /f /s /q %systemdrive%\*.tmp |
| del /f /s /q %systemdrive%\*._mp |
| del /f /s /q %systemdrive%\*.log |
| del /f /s /q %systemdrive%\*.gid |
| del /f /s /q %systemdrive%\*.chk |
| del /f /s /q %systemdrive%\*.old |
| del /f /s /q %systemdrive%\recycled\*.* |
| del /f /s /q %windir%\*.bak |
| del /f /s /q %windir%\prefetch\*.* |
| rd /s /q %windir%\temp & md %windir%\temp |
| del /f /q %userprofile%\cookies\*.* |
| del /f /q %userprofile%\recent\*.* |
| del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" |
| del /f /s /q "%userprofile%\Local Settings\Temp\*.*" |
| del /f /s /q "%userprofile%\recent\*.*" |
- 批处理脚本重置任务栏图标
代码拷贝入bat文件执行
| @echo off |
| reg delete "HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /f /v "IconStreams" |
| reg delete "HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /f /v "PastIconsStream" |
| |
| taskkill /IM explorer.exe /F |
| |
| timeout 2 |
| |
| start explorer.exe |
- 批处理脚本批量改名
代码拷贝入bat文件,放在需批量改名文件的同目录下执行
| @echo off&SetLocal ENABLEDELAYEDEXPANSION |
| for %%i in (*) do ( |
| set "name=%%i" |
| set "name=!name:原字段=更改后字段!" |
| ren "%%i" "!name!" |
| ) |
| pause |
- 批处理删除指定名称的文件夹(以“results”为例)
代码拷贝入bat文件,放入需执行删除文件夹的顶层文件夹中执行,会向下遍历
| @echo off |
| for /f "delims=" %%i in ('dir /ad /b /s "results"') do ( |
| rd /s /q "%%i" |
| ) |
| pause |
-
批处理命令中调用vbs弹出消息提示框
代码拷贝入bat文件执行
mshta vbscript:msgbox("起来上厕所了兄弟!",64,"batch script")(window.close)
-
批处理获取安装程序列表
代码拷贝入bat文件执行
| @echo off |
| setlocal ENABLEDELAYEDEXPANSION |
| pushd %~dp0 |
| |
| ::-code-:: |
| |
| set RF="%~dpn0.txt" |
| cd.>%RF% |
| ::64位系统的32位子系统 |
| if "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( |
| set RKey=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall |
| echo [32 bit SoftWares]>>%RF% |
| call :GetIt |
| echo.>>%RF% |
| ) |
| ::主系统 |
| set RKey=HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall |
| if "%PROCESSOR_ARCHITECTURE%"=="AMD64" ( |
| echo [64 bit SoftWares]>>%RF% |
| ) else ( |
| echo [32 bit SoftWares]>>%RF% |
| ) |
| call :GetIt |
| |
| set RKey= |
| set RF= |
| ::-code-:: |
| |
| :Exit |
| popd |
| endlocal |
| exit /b |
| |
| :GetIt |
| for /f "usebackq eol=! delims=" %%i in (`reg query %RKey%`) do ( |
| set iKey=%%i |
| set iKey=!iKey:%RKey%\=! |
| echo !iKey! |
| for /f "usebackq eol=! delims=" %%I in (`"reg query %RKey%\!iKey! /v DisplayName 2>nul"`) do ( |
| set iName=%%I |
| set iName=!iName:%RKey%\=! |
| set iName=!iName:DisplayName=%! |
| set iName=!iName:REG_SZ=%! |
| echo !iName!>>%RF% |
| set iName= |
| ) |
| set iKey= |
| ) |
| exit /b |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!