|I have a large number of files that I need to append in the folder: C:\Users\Alan\Desktop\MOVEVOL 8 16 - 31\2010|
All the files that are there are files that have been split ending with the file extension ".001", ".002"
".003", ".004" and so on.
I am trying to convert the files into png's, but here is an example of my problem:
I have the files 1234.001, 1234.002, 1234.003, 1234.004 that I need to convert to .png
I have tried using the following batch code to do this:
ren *.001 *.png
ren *.002 *.png
ren *.003 *.png
ren *.004 *.png
When converting the files to .png I need to rename them to the following: 1234_001.png, 1234_002.png, 1234_003.png, 1234_004.png so that there will not be a name conflict.
from looking on this site and others I have tried to create my own code that does not seem to be work:
IF EXIST *.002 FOR %%A IN ('dir C:\Users\Alan\Desktop\MOVEVOL 8 16 - 31\2010') DO RENAME %%~nA 002.png
Can some please help me out with this problem, because in the C:\Users\Alan\Desktop\MOVEVOL 8 16 - 31\2010 folder I have 1000's of files that I need to rename and convert so doing this by hand would be horrible.