Loop through recordset and copy files to another folder
Posted on 2013-05-10
I have a table with 4,000+ records.
Each record has a field with a path to a single image.
For various reasons, the folder in which the images are located has many more images that I don't need.
So... I would like to loop through the table and for each record I would like to "copy" the image from the path (and its related "xxx_small.jpg" file) into another folder.
After they are all copied, I can delete the original folder and know that the only images I need are in the 2nd folder.
How can I do this using ASP VBScript?