Posted this on a few other forums but they all were locked for various reasons.
As the image shows I have many files that I would like to move to proper folders. I need these files to move to these folders. This is just a limited example as I need all files to be moved into their proper season folder.
Y:\TD\_Work\Mobile\Game.Theory.with.Bomani.Jones.S02E02.AAC.MP4-Mobile.mp4
Y:\TD\_Work\Mobile\Gold.Lies.and.Videotape.S01E05.The.Monster.AAC.MP4-Mobile.mp4
Y:\TD\_Work\Mobile\Graveyard.Carz.S16E02.AAC.MP4-Mobile.mp4
Y:\TD\_Work\Mobile\Full.Swing.2023.S01E08.AAC.MP4-Mobile.mp4
Y:\TD\_Work\Mobile\Game.Theory.with.Bomani.Jones.S02.AAC.MP4-Mobile
Y:\TD\_Work\Mobile\Gold.Lies.and.Videotape.S01.The.Monster.AAC.MP4-Mobile
Y:\TD\_Work\Mobile\Graveyard.Carz.S16.AAC.MP4-Mobile
Y:\TD\_Work\Mobile\Full.Swing.2023.S01.AAC.MP4-Mobile
The script needs to be able to read the files name to the season:
Full.Swing.2023.S01
and then move it to the folder:
Full.Swing.2023.S01.AAC.MP4-Mobile.
I have looked through many websites today and many that I found just want to make a folder with the file's name instead of moving it to a season folder.
This is for Windows 10 batch file. Making folders is not necessary but if possible adding that would be even better at saving time.
Also wanted to add that I would be just running this inside only one folder. No need for paths. Just move files into designated folders.
--edit
I was asked to clarify. Not sure where I am not clear.
My current method.
Remove all video files to one directory.
From there move files by hand to previously created directories.
If a new directory is needed I use a files2folders app that is installed.
To get to a proper season format I manually edit the folder's name and remove episode numbers.
@echo off
for %%a in (*.*) do (
md "%%~na" 2>nul
move "%%a" "%%~na"
)
That script is not needed as it does all files into individual folders. I do not need all files in their own folders. Almost every script I found currently is some form of this.
If you looking for more information than this I can not provide more as everything I am doing is done by hand. I know just enough about scripting to modify simple code to suit my needs but beyond that, I am at a loss. My career path was military/construction/nurse. Nothing with coding.