JSI Tip 9285. How can I calculate the total size of my Restore Points, and optionally list the Restore Point details?

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 7315456
The syntax for using enumRPsz.bat is:

enumRPsz \[D\]

Where D is an optional parameter that will display the details.

enumRPsz.bat contains:

@echo off
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%

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.