Do we have any alternative ways to delete images without using delete command?
I am trying to copy images from one folder to another.
I just want to copy images which starts with lastname,firstname-idnum.
I want to remove images which starts with hyphen (-)
I want to remove images which starts with numbers
I don't want to use del command on my production environment, so I am looking for safe and better solution.
Would you please give me appropriate solution for that asap?
I am also sharing my code with you but for some reason it is not working properly.
@echo off
robocopy c:\images c:\images2 /XN /XC /XO
cd c:\images2
del /r \ -*.JPG
cd c:\images2
del /r \ [0]*.JPG
cd c:\images2
del /r \ [0]*.JPG
cd c:\images2
del /r \ [1]*.JPG
cd c:\images2
del /r \ [2]*.JPG
cd c:\images2
del /r \ [3]*.JPG
cd c:\images2
del /r \ [4]*.JPG
Thanks
