cmd - how to move files from sub-folder to folder -


i've got:

c:/pics/asf/photos/files (.jpg)

c:/pics/dfs/photos/files (.jpg)

c:/pics/hgd/photos/files (.jpg)

c:/pics/ftg/photos/files (.jpg)

.....etc

in every "photos" directory more 1 .jpg file

i want:

c:/pics/asf/files (.jpg)

c:/pics/dfs/files (.jpg)

c:/pics/hgd/files (.jpg)

c:/pics/ftg/files (.jpg)

.....etc

can me .cmd doing job?

best regards

@echo off cd c:/pics /d %%i in (.) ( cd "%%i" move photos/*.jpeg . cd.. ) 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -