I want to create a script to do the following.
I have .cr2 files in a folder called raw.
I have .jpg files in a folder called jpg.
I have an empty folder called selected.
I want the script to read the file names in the jpg folder and copy the same file names from the raw folder to the selected folder.I am sure this is easy but I am new to scripts.
for %%a in (jpg\*.jpg) do copy "raw\%%~Na.raw" selected\
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.
Thank you for clearing that up for me. It worked perfectly! THANK YOU so very much for your skills.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |