@cls
::@ECHO Off
COLOR 1F
ECHO +--------------------------------+
ECHO :XBMC NFO TO DIR Creator V2.00. :
ECHO :(c)2012,2013, by the 'Strokeman':
ECHO +--------------------------------+
ECHO.
IF not EXIST NFO2DIR.TXT (
ECHO Ensure your've read nfo2dir.txt before you run, Press ^^C if you want to abort. .
echo Because WARNING: This will irreversibly, alter disk structure!!!
ping localhost -n 5 >nul
) else (
START /max notepad NFO2DIR.TXT
)
goto miss
if not exist *.nfo (
echo.
ECHO It appears you haven't run vid. export yet!
ping localhost -n 5 >nul
exit /B
)
:miss
if "%~1"=="" (
echo.
echo Stacked video files MAY be present, no
echo commandlines given, continuing anyway. .
ping localhost -n 5 >nul
)
echo.
echo Please wait. . DON'T INTERRUPT!!
ping localhost -n 5 >nul
for %%a in (*.NFO) do md "%%~na" & move /y "%%~na.*" "%%~na" >nul
if exist (*-fanart.*) (
for %%a in (*.) do (
move /y "%%~na-fanart.*" "%%~na" >nul
)
)
if exist (*-poster.*) (
for %%a in (*.) do (
move /y "%%~na-poster.*" "%%~na" > nul
)
)
if exist (*-landscape.*) (
for %%a in (*.) do (
move /y "%%~na-landscape.*" "%%~na" >nul
)
)
if exist (*-thumb.*) (
for %%a in (*.) do (
move /y "%%~na-thumb.*" "%%~na" >nul
)
)
if EXIST extrathumbs (
rd /s /q extrathumbs
)
if EXIST extrafanart (
rd /s /q extrafanart
echo.
echo extrafanart and extrathumbs dir. deleted
) ELSE (
echo.
echo extrafanart or extrathumbs dir. not found. . .
)
set a=%1
setlocal EnableDelayedExpansion
set b=1
:loop.countChar.2
call set c=%%a:~!b!,1%%
if "%c%"=="" goto end
set /a b+=1
goto loop.countChar.2
:end
echo.
echo The following is a listing of files not yet processed
echo it dosent show your newly created dir. structure!. . .
echo.
dir /a-d-h
ping localhost -n 3 >nul
goto :eof
set end=-%b%
for %%a in (*%1.*) do call :next "%%a"
goto end
if not "%~1"=="" (
:next
set "var=%~n1"
call set "var=%%var:~0,%end%%%"
md "%var%" 2>nul
echo moving %1 to "%var%"
move "%~1" "%var%" >nul
)
:skip
echo.
echo Operation Completed Successfully, you will now have to update Library, After
echo that, please run artwork downloader, then enable extrafanart in chosen skin.
ping localhost -n 5 >nul
i dont get it, have looked at it a million times. if i put in a %1 its fine, but with no commandline it gets stuck in the red section, incrementing to affinity, till i ^c it?