Windows使用便捷
查看文件前100行
Powershell
# 前100行
type test.txt|Select -First 100
# 后100行(超大型文件读取很慢)
type test.txt|Select -Last 100
桌面及目录背景无新建
注册表插入值(执行以下文件 repair.vbs)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New]
@="{D969A300-E7FF-11d0-A93B-00A0C90F2719}"
Windows下移动硬盘无法弹出
1. 开始菜单右键 -> 事件查看器
2. 自定义视图 -> 管理事件
3. 再弹出一次移动硬盘
4. 刷新事件 -> 点击第一条
5. 下方常规 -> 找到阻止弹出移动硬盘的程序
6. 合理的关掉这个程
解决任务栏程序图标显示白色
关闭Windows最近使用以及跳转列表
# 跳转列表
打开“设置”应用,关闭“在“开始”屏幕或任务栏的跳转列表中显示最近打开的项”设置即可
Win+S --> 跳转列表 ->关闭
# 最近使用
Win+E --> 文件资源管理器“查看” --> 取消隐私勾选
去除小箭头.bat (右键管理员运行)
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer
pause
恢复小箭头.bat (右键管理员运行)
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db"
del "%userprofile%\AppData\Local\iconcache.db" /f /q
start explorer
pause
查看端口占用
netstat -ano | findstr 0.0.0.0:80
# 知道PID,任务管理器杀进程