New
#11
New and improved code.
If your text files are named as the artist and the way you want the subfolder to read then use this
No need to create a line for each artist it uses the text files name as the artist name.Code:@echo off for /f "tokens=1,2 delims=." %%i in ('dir /b C:\Artist\*.txt') do (call :COPY_FILES "C:\Artist\%%i.%%j" ".\%%i\*.*") exit :COPY_FILES for /F "usebackq delims==" %%G in (%1) do xcopy /qv "%%Glyricschords.*" %2
I've only given code to copy the files to subfolders because it's easier than the move command.
BTW the text files should be located in C:\Artist and again run this from the folder containing the files to copy. This is based on your list formatted as
fortyhourweek
hatsoff
hangingupmytravelingshoes
if they are like
fortyhourweeklyricschords.html
hatsofflyricschords.html
hangingupmytravelingshoeslyricschords.html
then replace "%%Glyricschords.*" with "%%G"
with this code all list will need to be in the same format.