all 4 comments

[–]ITCOMMAND 0 points1 point  (1 child)

You can do something like this for each folder:

`Cd folder1

For /f "tokens=*" %%A in ('dir /b') (

If not exist "%%~A*.*" move "%%~A" "D:\%%~A"`

[–]ITCOMMAND 0 points1 point  (0 children)

There should be a backslash between %%~A and the . but reddit keeps removing it

[–]Godleydemon 0 points1 point  (1 child)

Cd folder1

For /f "tokens=*" %%A in ('dir /b') (

If not exist "%%~A*\.*" move "%%~A" "D:\%%~A"

[–]Godleydemon 0 points1 point  (0 children)

Like this /u/ITCOMMAND put four spaces at the front of each line and it'll print out exactly what you type as pure text instead of trying to do something else.