Batch move files to folders. Folders are named based off of the filename
0
Trying to find a bat that can do this but no luck. With my very limited knowledge of batch coding I have no idea where to begin editing similar existing code. I have files in a folder as seen below: \NASART1234.pdf \NASART1235.ai \NASART1236.eps I want to move these files to another folder on a server where the folder structure is as follows: \NASArt1234Original1234.pdf \NASArt1235Original1235.ai \NASArt1236Original1236.eps It would place the file into the original folder of the filenames folder. Sorry if that is confusing. I have found this which is close to what i want but minus the removal of characters. @ECHO OFF SETLOCAL SET "sourcedir=U:sourcedir" SET "destdir=U:destdir" FOR /f "delims=" %%a IN ( 'dir /b /a-d "%sourcedir%*.xml...