REM Detect how many files are on the C: drive
dir /s /b C:\ |find /c "\" > NUMfiles.###
set /p count1=<NUMfiles.###
##### TEMP FILES DELETED HERE, RUN CCLEANER, RUN MBAM, ETC #####
REM Calculate Total Files Deleted
dir /s /b C:\ |find /c "\" > NUMfiles.###
set /p count2=<NUMfiles.###
set /a count3=%count1% - %count2%
echo Number of files removed: %count3%
这似乎没有给我一个准确的读数。任何人都可以帮忙吗?我在脚本之前和最后使用 'dir /s /b C:\ |find /c "\"' 通过命令行进行手动检查。'%count3% 的输出不准确,因为我从手动检查中减去。希望你能理解我的问题。