In tip 8976, we retrieved all the available Restore Points on a Windows XP Professional computer.
I have scripted enumRPsz.bat to calculate the size of the Restore Points on your C: drive, and optionally display the details, like:
"C:\System Volume Information\_restore\{987E0331-0F01-427C-A58A-7A2E4AABF84D\}\RP941\snapshot\_REGISTRY_MACHINE_SYSTEM" 04/20/2005 23:16 7315456The syntax for using enumRPsz.bat is:
enumRPsz \[D\]
Where D is an optional parameter that will display the details.
enumRPsz.bat contains:
@echo off setlocal ENABLEDELAYEDEXPANSION set /a size=0 for /f "Tokens=*" %%a in ('dir /b /a /ad "C:\System Volume Information\_restore*"^|FIND /I "_restore"') do set R1=%%a set R1=C:\System Volume Information\%R1% for /f "Tokens=*" %%a in ('dir /b /a /ad "%R1%"^|FIND /I "RP"') do ( for /f "Tokens=*" %%b in ('dir /b /s /a /a-d "%R1%\%%a\snapshot"^|FIND "_REGISTRY_"') do ( If /i \{%1\}==\{D\} @echo "%%b" %%~tb %%~zb set /a size=!size! + %%~zb ) ) @echo Total Restore Point Size: %size% endlocal
0 comments
Hide comments