Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: loop a batch file that reaads parameter from an external file in XP  (Read 4244 times)

0 Members and 1 Guest are viewing this topic.

savdiei

  • Guest
here is what i am trying to do

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: loop a batch file that reaads parameter from an external file in XP
« Reply #1 on: January 07, 2011, 06:49:00 AM »
I'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.  8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

donpage



    Rookie

    Thanked: 1
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows XP
    loop a batch file that reaads parameter from an external file in XP
    « Reply #2 on: January 08, 2011, 10:09:02 PM »
    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

    )


    Salmon Trout

    • Guest
    Re: loop a batch file that reaads parameter from an external file in XP
    « Reply #3 on: January 09, 2011, 02:52:27 AM »
    Bill's back! Another nonsense post.