分类 操作系统 下的文章

@echo off
choice /t 5 /d y /n >nul
:start
echo [%time% %date%] Press F8
"D:\tools\Hot Virtual Keyboard\hvk.exe" /ACTION F8
choice /t 2 /d y /n >nul
echo [%time% %date%] Press F9
"D:\tools\Hot Virtual Keyboard\hvk.exe" /ACTION F9
choice /t 2 /d y /n >nul
echo [%time% %date%] Press F10
"D:\tools\Hot Virtual Keyboard\hvk.exe" /ACTION F10
choice /t 2 /d y /n >nul
goto start

@echo off

if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit)

set DNS1=8.8.8.8
set DNS2=8.8.4.4

echo change DNS1 to %DNS1%
echo change DNS2 to %DNS2%

echo =========== START ============

for /f "tokens=1,2,3* skip=3" %%i in ('netsh int show interface') do (

netsh interface ipv4 add dns "%%l" %DNS1% index=1 > nul
netsh interface ipv4 add dns "%%l" %DNS2% index=2 > nul
echo "%%l" change complete!!

)

ipconfig /flushdns > nul

echo =========== COMPLETED ============

pause

@echo off
echo 正在清理系统垃圾文件,请稍等......
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*.*"
echo 清理系统垃圾完成!
echo. & pause