Thanks so much for your response. However, the file 232323 AVM.pdf still gets copied to folder C:\Temp\CWB\081230351 NOT C:\Temp\CWB\081230351.1. I need it to be copied to folder 081230351.1.
However, the file 232323 AVM.pdf still gets copied to folder C:\Temp\CWB\081230351 NOT C:\Temp\CWB\081230351.1. I need it to be copied to folder 081230351.1.
Now you confused me completely ... sorry. I understood you want to copy the files to a subfolder with the same name like the number in the file name. If your destination folder needs more characters you should add this to the line where you build the $targetdir variable.
Thank you. Yes that is my problem. I don’t know how to modify this variable. Could you suggest how I would build this variable $targetdir to reflect what I needed? Thanks again.