Purge Disk When Full Dos Batch Files Windows XP pro
Posted: 19 Jun 2010 14:50
I have created a batch script that copies all information to an external hdd. I need help creating a script that will tell me when that external HDD is almost full and to start deleting the oldest backup directories from the external hdd
So I want to add this function to this script of deleting the oldest backup directory on the external when it is full. This would be the E: drive (attached external hdd)Help?
Code: Select all
@ECHO OFF
echo d|XCOPY C:\DOCUME~1\Cozed\MYDOCU~1\* E:\Daily\%date:~4,2%_%date:~7,2%_%date:~10,4%_Data /y /s /v
echo d|XCOPY C:\DOCUME~1\Cozed\applic~1\thunde~1\* E:\Daily\%date:~4,2%_%date:~7,2%_%date:~10,4%_Email /y /s /v
So I want to add this function to this script of deleting the oldest backup directory on the external when it is full. This would be the E: drive (attached external hdd)Help?