FOR /R loops are better than /F to recurse through subdirectories. PUSHD can go to the directory in the current loop iteration, but referencing it will show the directory ending with a period.
FOR /R %%F in (.) do (PUSHD&ECHO %%F)
will print something like..
C:\Directory\.
C:\Directory\SubDirectory\.
C:\Directory\SubDirectory\SubSubDirectory\.
..which will throw off some stuff. The period needs to be manually truncated. I do something like this...
set FolderNameWithDot=%%F
set CurrentFolderPath=!FolderNameWithDot:~0,-1!
And it would require another loop within the loop. First loop is just to go through each sub directory, 2nd loop would have to loop through PNG files in the current directory. For this, /R is no longer needed.
FOR %%G in (.png) do (
If I get some free time tonight I'll do you a solid and check this stuff out and see if I can make you something. I haven't been following closely so I'm not 100% sure what you're trying to do here, but I shouldn't be busy in a few hours.
FOR /R %%F in (.) do (PUSHD&ECHO %%F)
will print something like..
C:\Directory\.
C:\Directory\SubDirectory\.
C:\Directory\SubDirectory\SubSubDirectory\.
..which will throw off some stuff. The period needs to be manually truncated. I do something like this...
set FolderNameWithDot=%%F
set CurrentFolderPath=!FolderNameWithDot:~0,-1!
And it would require another loop within the loop. First loop is just to go through each sub directory, 2nd loop would have to loop through PNG files in the current directory. For this, /R is no longer needed.
FOR %%G in (.png) do (
If I get some free time tonight I'll do you a solid and check this stuff out and see if I can make you something. I haven't been following closely so I'm not 100% sure what you're trying to do here, but I shouldn't be busy in a few hours.