Michael Dibbets

My feedback

  1. 174 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    44 comments  ·  General  ·  Flag idea as inappropriate…  ·  Admin →
    Michael Dibbets commented  · 

    For those who wish a monitor...

    First, create a task for ftpbox in windows task scheduler. Remember the name you gave the task. I named mine "Start ftpbox"

    @Echo off
    cls
    echo Starting FTBOX Monitor
    echo ======================
    @set counter=0
    :query
    @schtasks /query /fo list /tn "Start ftpbox" | @find /c "Running" >nul 2>&1 &&(
    @set/a counter += 1 >nul 2>&1
    )||(
    echo RAN FOR %COUNTER% ITERATIONS!
    echo ERROR!
    echo FTPBOX IS NOT RUNNING ERROR!
    echo RESTARTING!
    C:\Windows\System32\schtasks.exe /run /TN "Start ftpbox"
    echo Re-starting FTBOX Monitor
    echo ======================
    @set counter = 0
    )
    @ping -n 2 0 >nul 2>&1
    goto :query

Feedback and Knowledge Base