First post, by curvedline
@echo offclsecho 1 2 3 4 | find "2"if errorlevel 1 goto :a1if not errorlevel 1 goto :a2:a1echo string not foundgoto :end1:a2echo string foundgoto :end1:end1echo 1 2 3 4 | find "5"if errorlevel 1 goto :a3if not errorlevel 1 goto :a4:a3echo string not foundgoto :end:a4echo string foundgoto :end:endpause
this command was either broken or dosbox was not meant to implement this, both results were the same, when they could NOT be the same.
it works in dosbox-x well.
if it wasnt meant for dosbox to implement this, dosbox should have given an error message, but it looked like dosbox was processing it as if it was rightfully working.
this one is hurting badly when there are not many DOS commands to work with in dosbox.
find "abc" aa1.txt, this natural FIND command in dosbox was not implemented from the start, it caused an immediate syntax error, which i understood
i think i got nothing to use for finding
i checked these commands, no working in dosbox
echo %~d0 - understandable if not working
echo %~dp0 - understandable if not working
echo %~p0 - understandable if not working
echo %0 except for this
echo %1 except for this
echo %CD%
echo %__CD__%
FOR %%v IN (aa bb cc) DO echo %%v - this one also hurts