Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- |parent
- | |123
- | | 123abc.png
- | |456
- | | 456def.png
- | |789
- | | 789ghi.png
- |parent
- | 123abc.png
- | 456def.png
- | 789ghi.png
- FOR /R "C:Source Folder" %i IN (*.png) DO MOVE "%i" "C:Staging Folder"
- SetLocal EnableDelayedExpansion
- FOR /R "C:Source Folder" %%A IN (*.png) DO (
- Set "CurrFile=%%~A"
- Set "TMPdp=%%~dpA"
- Set "ParFldr=!TMPdp:~0,-1!"
- Echo MOVE "%%~A" "!ParFldr!" ) & REM Delete echo to move. Run to test.
Add Comment
Please, Sign In to add comment