I want to insert the following command to the 1st line & a self destruct command to the last line of another batch
if not "%1" == "max" start /MAX cmd /c %0 max & exit/b
my batch:
@echo off
if not "%1" == "max" start /MAX cmd /c %0 max & exit/b
CD %~dp0mkvtoolnix
pause. >nul | echo. Press Enter To Analyze MKV Files
echo. Analyzing MKV Files
@echo on
%~dp0ChapterUnorderer.exe %~dp0 [-o] [-f]
<New command that I require>
@echo off
pause. >nul | echo. Press Enter To Remux
START %~dp0ChapterUnorderer.bat
pause
del "%~dp0ChapterUnorderer.bat"
EDIT this batch cant have absolute paths & my batch has spaces in the name if that helps