1.

Solve : loop a batch file that reaads parameter from an external file in XP?

Answer»

here is what i am trying to doI'm not UNDERSTANDING the question. Are these parameters in response to a PROMPT issued by the program? or are they VARIABLES for the batch code itself? It would help if you would show your code and exactly what you need to do.

Let us know. C:\TEST>type notepid.txt
sleep.exe 2476 Console 1 1,000 K
sleep.exe 2952 Console 1 996 K

Code: [Select]@echo off

start notepad joe.txt

sleep 6
tasklist
pause

tasklist | findstr "%1" > notepid.txt

for /f "tokens=1,2 delims= " %%i in (notepid.txt) do (
echo pid=%%j

taskkill /pid %%j

)
Bill's back! Another nonsense post.



Discussion

No Comment Found