|for %%a in (jpg\*.jpg) do copy "raw\%%~Na.raw" selected\|
Did not work for me. But it could be me. Let me make sure I am executing the script correctly. I copied the script into notepad and saved it as a .vbs file. I then ran the .vbs file and got an error Line 1 Char 5 Invalid Character. Is this the correct way to run the script? All of the folders mentioned above and the .vbs file are in the c:/ directory.