I am moving .jpg files from a directory and its subdirectories on a daily basis and then deleting them. To make this easier I created 2 batch files: One that moves the files and one that deletes them.
To move the files:
move C:\"DIRECTORY\*.jpg C:\temp\
move C:\"DIRECTORY\SUBDIRECTORY\*.jpg C:\temp\
move C:\"DIRECTORY\SUBDIRECTORY2\*.jpg C:\temp\
move C:\"DIRECTORY\SUBDIRECTORY3\*.jpg C:\temp\
And to delete files:
del C:\temp\*.jpg
Can I create one script that looks for the files under the folder and subfolders (new subfolders are created regularly) that can do both?