is fine but not processing %1, whats wrong?
@cls
@ECHO Off
ECHO +-----------------------------+
ECHO :XBMC NFO TO DIR Creator V2.0:
ECHO +-----------------------------+
ECHO.
IF not EXIST NFO2DIR.TXT (
ECHO Ensure yourv'e 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
)
if not exist *.nfo (
if "%1z"=="z" (
ECHO It appears you haven't run vid. export yet!
ping localhost -n 5 >nul
exit /B
)
)
echo Please wait. . DON'T INTERRUPT!!
ping localhost -n 5 >nul
for %%a in (*.NFO) do md "%%~na" & move /y "%%~na.*" "%%~na" & move /y "%%~na-fanart.*" "%%~na" & move /y "%
%~na-poster.*" "%%~na" & move /y "%%~na-thumb.*" "%%~na"
if EXIST extrathumbs (
rd /s /q extrathumbs
)
if EXIST extrafanart (
rd /s /q extrafanart
echo extrafanart and extrathumbs dir. deleted
) ELSE (
echo extrafanart or extrathumbs dir. not found. . .
)
if not x==%1x goto end
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 Stacked files may exist, no switches given, read manual
ping localhost -n 5 >nul
dir /p
exit /b
set end=-%b%
for %%a in (*%1.*) do call :next "%%a"
goto :EOF
:next
set "var=%~n1"
call set "var=%%var:~0,%end%%%"
md "%var%" 2>nul
move "%~1" "%var%" >nul
@cls
echo Operation Completed Successfully.
ping localhost -n 5 >nul