- Published on
实用小技巧
- Authors
- Name
- 阿涵王小胖
- @hnqxc
windows 输入法自定义短语,快捷输入当前时间
右键输入法,用户自定义短语,添加短语输入下面正则表达式
%yyyy%-%MM%-%dd% %HH%:%mm%:%ss%
windows 清除所有RDP历史记录
新建文件,保存下面脚本为.bat
@echo off
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers"
attrib -s -h %userprofile%\documents\Default.rdp
del %userprofile%\documents\Default.rdp
del /f /s /q /a %AppData%\Microsoft\Windows\Recent\AutomaticDestinations
windows 自动启动脚本
自动php启动,自动nginx启动
@echo off
REM Windows 下无效
REM set PHP_FCGI_CHILDREN=5
REM 每个进程处理的最大请求数,或设置为 Windows 环境变量
set PHP_FCGI_MAX_REQUESTS=1000
echo Starting PHP FastCGI...
C:\Users\MINI\Documents\SOFT\nginx-1.24.0\RunHiddenConsole C:\Users\MINI\Documents\SOFT\nginx-1.24.0\xxfpm.exe "C:/Users/MINI/Documents/SOFT/php82/php-cgi.exe -c C:/Users/MINI/Documents/SOFT/php82/php.ini" -n 5 -i 127.0.0.1 -p 9000
echo Starting nginx...
C:\Users\MINI\Documents\SOFT\nginx-1.24.0\RunHiddenConsole C:\Users\MINI\Documents\SOFT\nginx-1.24.0\nginx.exe -p C:\Users\MINI\Documents\SOFT\nginx-1.24.0\
exit
停止脚本
@echo off
echo Stopping nginx...
taskkill /F /IM nginx.exe > nul
echo Stopping PHP FastCGI...
taskkill /F /IM xxfpm.exe > nul
exit