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

Author Topic: command line to restart script.bat ?  (Read 3271 times)

0 Members and 1 Guest are viewing this topic.

karlosss

    Topic Starter


    Beginner

    • Experience: Beginner
    • OS: Windows XP
    command line to restart script.bat ?
    « on: May 13, 2017, 01:44:08 AM »
    Hi, all i want is to add a new line to script.bat, so when when my tool disconnect or receive the word ''error connection'' repeating more then 10 times then ''script.bat''  must restart itself.I will also post the script if there is anyone who wants to help me
    thank you

    P.S.

    I used a paid tool called '' AlwaysUP'' but when script.bat is disconnected does not re-connect after 5 min (i set waiting time 5 min. then reconnect )but does not work, i don't know how to solve this

    Hackoo



      Hopeful
    • Thanked: 42
    • Experience: Expert
    • OS: Windows 10
    Re: command line to restart script.bat ?
    « Reply #1 on: May 13, 2017, 06:10:43 AM »
    You can add your script batch and use the BBCode # [ code][/ code]

    karlosss

      Topic Starter


      Beginner

      • Experience: Beginner
      • OS: Windows XP
      Re: command line to restart script.bat ?
      « Reply #2 on: May 13, 2017, 06:35:57 AM »
      I set AlwaysUP application to restart this ''script.bat(wich work with Ncrack)'', just 5 minutes after the death of the process with no effect,so when this process dies?Is about RDP i have my own 2 rdp's and i do this for educational porpose. So Ncrack script process dies on my 1'st RDP when my 2'nd rdp is restarted and then after 1-5 min my 2'nd rdp is UP again but my script is from 1'st rdp is unable to recover the process,how to solve this?need to add a new line or someone who knows how to work with AlwaysUP aplication. This is the bat script here: 
      Code: [Select]
      https://pastebin.com/ip3sKkAA
      Can anyone take a look please?I tried to find help in diferrent places with no succes,thank you
      team viewer?

      Salmon Trout

      • Guest
      Re: command line to restart script.bat ?
      « Reply #3 on: May 13, 2017, 11:58:40 AM »
      script.bat(wich work with Ncrack)
      Ncrack is a high-speed network authentication cracking tool. Also, like we're sure going to go to your link for this!

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      Re: command line to restart script.bat ?
      « Reply #4 on: May 13, 2017, 01:36:48 PM »
      Topic Closed...
      " Anyone who goes to a psychiatrist should have his head examined. "