I currently have over 100.000 files (.bak) which I need to move 1000 files to a different directory. The files that need to be moved have a twin-file with a different extension (.xml) so finding them should be easy, but for the life of me I can't figure out how to do this. I have no experience with .bat-files and I've already been struggling with stuff for a day. Can someone help me out please?
Quick example:
First file:
File1thatneedstomove.bak
File1thatneedstomove.xml
File1thatdoesntneedstomove.bak
File2thatdoesntneedstomove.bak
File3thatdoesntneedstomove.bak
File2thatneedstomove.bak
File2thatneedstomove.xml
So I need to move the 1st and 6th file to a different folder because they have a twin file where just the text behind the period is different.