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
Post a Comment