I am trying to create a batch file, or other script, to take the contents of one folder to a folder containing its name in another directory. For example:
ShowName.Episode.Title.mkv should be moved to \movies\showname. if \movies\showname\ doesn't exist, the script would create it.
There are, on average, 10-15 files at a time that would need moved.
Any ideas?
Thanks
You can conditionally create the folder with:
if not exist \movies\showname mkdir \movies\showname
To move a file into it:
move ShowName.Episode.Title.mkv \movies\showname
To get more information about these commands, open a command prompt and type:
help if
and
help move
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With