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

Author Topic: Batch- Count variable from text file & kill task remotely  (Read 2382 times)

0 Members and 1 Guest are viewing this topic.

Yogesh123

    Topic Starter


    Beginner

    Batch- Count variable from text file & kill task remotely
    « on: September 12, 2009, 08:30:16 AM »
    Using batch scripting,
    How to cout that "How many times the same PC name is appearing in a txt file"
    & if the count is odd number then kill the perticular task remotely.

    i know that killing task remotely is difficult, and it requires another batch to be created at client(remote PC) but i wanted to basically how to send alert remotely.

    Primary Quastion - Count the PC name
    Secondary Quastion - To kill task remotely

    Thak you in advance.

    Helpmeh



      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: Batch- Count variable from text file & kill task remotely
    « Reply #1 on: September 12, 2009, 08:44:23 AM »
    Well what does the file look like?
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    Yogesh123

      Topic Starter


      Beginner

      Re: Batch- Count variable from text file & kill task remotely
      « Reply #2 on: September 14, 2009, 02:04:59 AM »
      the text file is having a PC name in all the lines
      but the each line is having different PC name
      and i am interested to count each PC name, appearing at how many times in the txt file.