I have dozens of directories with hundreds of files. In each directory the files are automatically named file1, file2, file3 etc... I need to copy the files and prepend the directory name so I can dump all the files in one directory. For example, if I have a directory named May and files inside may called file1, file2, file3 etc.. I want to copy to a directory called 2003 and inside I want the files to be named may_file1, may_file2, etc.. so I will eventually have a whole years worth of files in one directory - may_file1, june_file1, july_file1 etc...
I thought it would be simple enough in DOS but its been a long time since I had to do anything with xcopy or copy.
Can anyone tell me an easy way? or does anyone have a vbscript that might do the same thing..
any suggestions would be appreciated...
I thought it would be simple enough in DOS but its been a long time since I had to do anything with xcopy or copy.
Can anyone tell me an easy way? or does anyone have a vbscript that might do the same thing..
any suggestions would be appreciated...