1.

Solve : Batch creation of new folders?

Answer»

Hello again. SCENARIO...10 files in a folder...Is it possible to use a batch command to create a folder for each of the files (with the name of each respective created folder the same as the file) and MOVE the file into it's new folder? Thanksihope its usfl
for /f "tokens=1,2 delims=." %%i in ('dir /b /a-d ' ) do (
MKDIR "%%i"
move "%%i.%%j" "./%%i/."
)

put this CODE will not work correctly if ur files name got . other that the on before the file type for eg the code will not work on this file
a.g.txt Superb...THANKS very much!!!



Discussion

No Comment Found