Announcement

Collapse
No announcement yet.

Please Help me with a batch file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Please Help me with a batch file

    Hello. I need some help with a batch file. I'm kinda new with this.
    I'm writting a batch file to auto add usernames for a chat bot to the userlist text file. So far it does this:

    [5]DoH-BlaZn has joined the channel.
    [11]DoH-BlaZn has joined the channel.
    [26]Dest_M has joined the channel.
    [77]DoH-BlaZn has joined the channel.
    [87]Deathstalker has joined the channel.
    [91]Solanaceae has joined the channel.
    [131]XEENA has joined the channel.

    Cant seam to modify the text so it will look like this:

    -----------------
    DoH-BlaZn
    5

    DoH-BlaZn
    5

    Dest_M
    5

    DoH-BlaZn
    5

    Deathstalker
    5

    Solanaceae
    5

    XEENA
    5

    ----------------

    The code:
    Code:
    @echo off
    :start:
    
    find /n "has joined the channel." "*.log" > x.txt
    findstr /e " has joined the channel." "x.txt" > 1.txt
    erase x.txt
    for 
    
    timeout /t 2
    goto :start:
    The batch should find the usernames and add it to another file which is the user list text file with access level of 5. Also it would be nice if it skipped the users which are already in the list. Cant seam to figure it out. Thank you in advance.
Working...
X