- Mar 1, 2000
- 30,856
- 4,974
- 126
We have millions and millions of scanned images on our system that are saved in:
E:\IMAGES\date\whatever\something\filename###.tif
We need to purge some of these files.
I can identify the exact path of the files that need to be purged (they have entries in a SQL database I can query against with some filters), but I'm going to end up with 100s of thousands, if not a million+ files to delete.
Does anyone have a "best practice" on how to created a script to delete these?
I could just create a .bat file that says:
Del E:\IMAGES\date\whatever\something\filename001.tif
Del E:\IMAGES\date\whatever\something\filename002.tif
...
Del E:\IMAGES\date\whatever\something\filename5438975439857.tif
but that just seems ridiculous.
Thoughts? Suggestions?
E:\IMAGES\date\whatever\something\filename###.tif
We need to purge some of these files.
I can identify the exact path of the files that need to be purged (they have entries in a SQL database I can query against with some filters), but I'm going to end up with 100s of thousands, if not a million+ files to delete.
Does anyone have a "best practice" on how to created a script to delete these?
I could just create a .bat file that says:
Del E:\IMAGES\date\whatever\something\filename001.tif
Del E:\IMAGES\date\whatever\something\filename002.tif
...
Del E:\IMAGES\date\whatever\something\filename5438975439857.tif
but that just seems ridiculous.
Thoughts? Suggestions?