Hi everyone,

I would like to know if anyone can fix my error with the following code:

Error:
Error: Invaild track ID '-d C:Users\admin\Desktop\encord\test\Test.mkv

Code:
Code:
@echo off
setlocal
 
FOR /f "delims=" %%i IN ('dir /b *.mkv') DO call :recode "%%i"
goto :done
 
:recode
set oldfile=%1
echo %oldfile% | find /i "[8bit]" > nul:
if not errorlevel 1 goto :eof

set newfile=%oldfile:.mkv= [8bit].mkv%
echo Newfile: %newfile%
 
if exist %newfile% goto :eof
echo Oldfile: %oldfile%
 
set tmpfile=%oldfile:.mkv=.tmp.mkv%
echo Tempfile: %tmpfile%
pause
 
if exist %tmpfile% del /f /q %tmpfile%

x264 --preset veryfast --tune animation --crf 17 -o %tmpfile% %oldfile%
 
cd C:\Program Files (x86)\MKVToolNix
pause
 
mkvmerge -o %newfile% -d %~dp0\%oldfile% %~dp0\%tmpfile%
 
echo Newfile: %~dp0\%newfile%
echo Oldfile: %~dp0\%oldfile%
echo Tempfile: %~dp0\%tmpfile%
pause
 
if exist %tmpfile% del /f /q %tmpfile%

goto :eof
 
:done
endlocal
It would really help if anyone knows the answer to fix this. I have been debugging this code for a while now.