Hi all I will be glad to get some help with windows batch script file to manipulate images, I am migrating from old software, it used to save the files in folder and each file had its own user id (e.g. 10050.jpg) I have like 1000 of these images, I would like to distribute the images to new folder with the image name and create SQL file to update the new software for example:
10050.jpg, 10051.jpg, 10052a.jpg, 10052b.jpg
Will go to:
/root/10050/10050.jpg /root/10051/10051.jpg /root/10052/10052a.jpg /root/10052/10052b.jpg
And SQL file created:
update users set user_img = 10050/10050.jpg where user_id = 10050; update users set user_img = 10051/10051.jpg where user_id = 10051; update users set user_img_a = 10052/10052a.jpg where user_id = 10052; update users set user_img_b = 10052/10052b.jpg where user_id = 10052;
Can anyone help me write a batch file to extract this information? I am a rank beginner at this. Thank you!