No.1:
清理垃圾 - -!
@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
No.2 :
生成随机数据
echo off
if "%1"=="" goto loop
echo question %1
%2d.exe
copy %2.in %2%1.in
goto end
:loop
for %%i in (15 19) do call %0 %%i ***
(注:***为文件名)
No.3 :
生成答案 answer.bat
if "%1"=="" goto loop
echo question %1
copy %1.in %2.in
%2.exe
copy %2.out %1.out
goto end
:loop
for %%i in (1 2 3 4 5 6 7 8 9 10) do call %0 %%i ***
:end
(注:***为文件名)
No.4 :
time.bat
time < t.txt
***.exe
time
No.5 :
fc
fc 文件1 文件2
pause
这些小工具方便自己调试程序~检查错误,对比数据,还有检查时间复杂度,很实用的
转自贝尔曼福德吧