Help Please!
I have run into a problem that seems like it should be easy to solve, but has completely stumped me. I am fairly new to DOS script writing. I couldn't get it to work with DOS, so I'd thought I would try Perl, which I have a little more experience with, but I am still bery much a beginner.
We have a program that runs and inserts files into multipl subdirectories on the C drive. I need to find a way to search for these *.jpg files in each subdirectory and move them to 1 single folder named c:\images. I am having trouble figuring out how to search subdirectories for these files and then move them all. The number of directories will vary, as well as the names of the folders...
For Example:
C:\folder1\image1.jpg
C:\folder2\image2.jpg
Both of these jpg files should be moved to c:\images.
Any help is greatly appreciated!
Thanks!
CJ
I have run into a problem that seems like it should be easy to solve, but has completely stumped me. I am fairly new to DOS script writing. I couldn't get it to work with DOS, so I'd thought I would try Perl, which I have a little more experience with, but I am still bery much a beginner.
We have a program that runs and inserts files into multipl subdirectories on the C drive. I need to find a way to search for these *.jpg files in each subdirectory and move them to 1 single folder named c:\images. I am having trouble figuring out how to search subdirectories for these files and then move them all. The number of directories will vary, as well as the names of the folders...
For Example:
C:\folder1\image1.jpg
C:\folder2\image2.jpg
Both of these jpg files should be moved to c:\images.
Any help is greatly appreciated!
Thanks!
CJ