bat file dont run
Posted: 24 Apr 2021 04:39
Hi sorry my english.
I have some .mkv film in D:\cdd i write script to sort him to folder.
This is code in bat file. Bat file is in D:\cdd
Bat file not working.
When i run win+r type cmd to cmd type
D:
cd cdd
for %i in (*mkv) do md "%~ni"
for %i in (*mkv) do move "%i" "%~ni"
Code working
Can you help me what i doing bad in batfile?
I have some .mkv film in D:\cdd i write script to sort him to folder.
Code: Select all
for %i in (*mkv) do md "%~ni"
for %i in (*mkv) do move "%i" "%~ni"
Bat file not working.
When i run win+r type cmd to cmd type
D:
cd cdd
for %i in (*mkv) do md "%~ni"
for %i in (*mkv) do move "%i" "%~ni"
Code working
Can you help me what i doing bad in batfile?