Hello
I have the source Batch or *.cmd
ECHO.
ECHO --------------------------------[ Installing ]---------------------------------
start "" TaskList.exe /nh | FindStr /l /i "moviemk.exe" >NUL 2>&1 || GoTo ILIE2025LACATUSU
ECHO.
ECHO Terminating Windows Movie Maker processes . . .
TaskKill /f /im "moviemk.exe" >NUL 2>&1
ping -n 3 localhost 1>NUL
:ILIE2025LACATUSU
ECHO FAIL=this script search moviemk.exe inside memory-of-taskmgr.exe
Echo If Yes , the "moviemk.exe" is running , automat then kill the process-of MovieMk.exe
Echo If No, the goto outside of script.
I got transform his code onto Pascal, but i got this ask C:Q1 , i need answer
C:Q1=How to search tasklist.exe iterator all path-recusrvely and how to got
C:\Windows\system32\tasklist.exe from %Path%Enviroment ?

I need the answer, because I have to few Win10live32x.Iso, BartPe10Live.iso,Win-10-Live-x64.ISO. Win98LiveCD36.iso , WindowsFx10.iso. and some file*iso have tasklist.exe Or other file*.iso do not have tasklist.exe.
:-\So.. i must search manually (by Pascal.fpc) , search tasklist.exe in
all-paths==%Path%Enviroment+GetCurrentDir()+ExtractFilepath(paramstr(0)).
- a)MyDefinition..%Path%Enviroment is equal
Path=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
b)You type "set >>arsenieboca.txt" after cmd.exe
c)You notepad arsenieboca.txt
d)You search findCTrl+F the words "Path=C:\ProgramData" isinside ..