OK, I'm not sure how familar you are with Bat(ch) files... but the instructions are as follows:
- Create two textfiles - one called "Thumbs.bat" and one "Fanart.bat" (source code is included at the bottom of my post.
- The Thumbs.bat is used to create thumb artwork!
- The Fanart.bat is used to create fanart artwork!
- Place these two file ANYWHERE on your system (I tend to keep them on my desktop when I'm working with them)
OK, so now to the real instructions.
- Make sure you store your movies in the following structure
MovieName\
........MovieName.avi (or wmv etc) ;The MovieName's MUST match
........Additional Artwork\
............. (Put all your artwork for the movie in here, any filenames will do)
- Now, when you need to create the thumbs for the movie, drag a suitable image from the 'Additional Artwork' folder onto the Thumbs.bat file
- When you need to create a fanart for the movie, drag a suitable image from the 'Additional' Artwork folder on the Fanart.bat file
The bat files will take care of image renaming (and will not touch your original image files in the 'Additional Artwork' folder). They will also set the images to hidden (this is just something I prefer,but can easily be changed)
********* Source Code for Thumb.bat **************
@
echo off
rem **** Set zzImageSourceFile to the file that was dropped onto the batch file (%1)
set zzImageSourceFile=%~1
rem **** Set zzMovieFolder to parent folder of the source image file.
rem **** This should then be the full path to the actual movie
cd /D %~dp1..
Set zzMovieFolder=%CD%
rem **** Set zzMovieName to the the actual name of the movie
rem **** This is calculated by moving to the movie folder
rem **** and parsing the last part of the path (the folder name) to obtain the movie name
cd /D %zzMovieFolder%
for /F "delims=\" %%I in ("%CD%") do set zzMovieName=%%~nxI
rem **** Set zzMovileFile to actual name of the movie file
rem **** This is discovered by bruteforce searching for avi, wmv files etc
if exist "%zzMovieFolder%\%zzMovieName%.avi" set zzMovieFile=%zzMovieName%.avi
if exist "%zzMovieFolder%\%zzMovieName%.wmv" set zzMovieFile=%zzMovieName%.wmv
if exist "%zzMovieFolder%\%zzMovieName%.mkv" set zzMovieFile=%zzMovieName%.mkv
echo Image File = %zzImageSourceFile%
echo Movie Folder = %zzMovieFolder%
echo Movie Name = %zzMovieName%
echo Movie File = %zzMovieFile%
if exist "%zzMovieFolder%\%zzMovieName%.tbn" attrib -H "%zzMovieFolder%\%zzMovieName%.tbn"
if exist "%zzMovieFolder%\%zzMovieFile%-big.png" attrib -H "%zzMovieFolder%\%zzMovieFile%-big.png"
copy "%zzImageSourceFile%" "%zzMovieFolder%\%zzMovieName%.tbn"
copy "%zzImageSourceFile%" "%zzMovieFolder%\%zzMovieFile%-big.png"
attrib +H "%zzMovieFolder%\%zzMovieName%.tbn"
attrib +H "%zzMovieFolder%\%zzMovieFile%-big.png"
pause
********* Source Code For Fanart.bat *******************
@
echo off
rem **** Set zzImageSourceFile to the file that was dropped onto the batch file (%1)
set zzImageSourceFile=%~1
rem **** Set zzMovieFolder to parent folder of the source image file.
rem **** This should then be the full path to the actual movie
cd /D %~dp1..
Set zzMovieFolder=%CD%
rem **** Set zzMovieName to the the actual name of the movie
rem **** This is calculated by moving to the movie folder
rem **** and parsing the last part of the path (the folder name) to obtain the movie name
cd /D %zzMovieFolder%
for /F "delims=\" %%I in ("%CD%") do set zzMovieName=%%~nxI
rem **** Set zzMovileFile to actual name of the movie file
rem **** This is discovered by bruteforce searching for avi, wmv files etc
if exist "%zzMovieFolder%\%zzMovieName%.avi" set zzMovieFile=%zzMovieName%.avi
if exist "%zzMovieFolder%\%zzMovieName%.wmv" set zzMovieFile=%zzMovieName%.wmv
if exist "%zzMovieFolder%\%zzMovieName%.mkv" set zzMovieFile=%zzMovieName%.mkv
echo Image File = %zzImageSourceFile%
echo Movie Folder = %zzMovieFolder%
echo Movie Name = %zzMovieName%
echo Movie File = %zzMovieFile%
if exist "%zzMovieFolder%\%zzMovieName%-fanart.jpg" attrib -H "%zzMovieFolder%\%zzMovieName%-fanart.jpg"
copy "%zzImageSourceFile%" "%zzMovieFolder%\%zzMovieName%-fanart.jpg"
attrib +H "%zzMovieFolder%\%zzMovieName%-fanart.jpg"
pause