I want 13 folders: One main folder "Folder_A" and twelve other sub-folders for the twelve months (it's a finance thing). My batch file code assigns Folder_A attributes. I want these attributes to repeat for the other twelve files. How to do this in a loop? Right now, I only know to copy-paste twelve times and change folder names, omg, but I need to do this for many other folders A, B, C, D, etc... How to assign/set folder attributes repeating to the twelve sub-folders?
@ECHO OFF PUSHD "%~dp0" MKDIR "Folder_A" ATTRIB +S "Folder_A" ATTRIB -R "Folder_A" ATTRIB -H -R "Folder_A\BLUEA.ini.ico" ATTRIB -H -R "Folder_A\Desktop.ini" COPY /Y "BLUEA.ini.ico" "Folder_A\BLUEA.ini.ico" ECHO [.ShellClassInfo] > "Folder_A\Desktop.ini" ECHO IconFile=BLUEA.ini.ico >> "Folder_A\Desktop.ini" ECHO IconIndex=0 >> "Folder_A\Desktop.ini" ECHO InfoTip=Apples Apples Apples >> "Folder_A\Desktop.ini" ATTRIB +H +R "Folder_A\BLUEA.ini.ico" ATTRIB +H +R "Folder_A\Desktop.ini" ATTRIB +R "Folder_A" POPD MD Folder_A\2019_01 MD Folder_A\2019_02 MD Folder_A\2019_03 MD Folder_A\2019_04 MD Folder_A\2019_05 MD Folder_A\2019_06 MD Folder_A\2019_07 MD Folder_A\2019_08 MD Folder_A\2019_09 MD Folder_A\2019_10 MD Folder_A\2019_11 MD Folder_A\2019_12 EXIT