CMD Command to move all .srt to a previous named folder

25 Views Asked by At

I need a command to move every .srt file into their previously named folder:

So I need:

\Movie1\Movie1_spa.srt
\Movie2\Movie2_spa.srt
\Movie3\Movie3_spa.srt

Example folders:

\Movie1
\Movie2
\Movie3

I was trying with:

for %i in (*) do move "%i" "%~ni"

But this only move it has the exact name my .srt But my .srt file have names like:

Movie1_spa.srt
Movie3_spa.srt
Movie3_spa.srt

Can someone help me with this?

Thx

0

There are 0 best solutions below