| View previous topic :: View next topic |
| Author |
Message |
juanamores Master
Joined: 15 Mar 2015 Posts: 317
|
Posted: Thu May 21, 2015 11:26 pm Post subject: autobotchk for windrop (Windows XP and Windows Server 2003) |
|
|
Windows XP (Tested and working.)
1) Create a batch file (* .bat) with any text editor, preferably Notepadd ++, but can be even notepad, making sure that the file extension is BAT and no TXT.
The filename can be anything, i.e autobotchk.bat
BATCH for Windows XP
| Code: | @echo off
tasklist /FI "IMAGENAME eq eggdrop.exe" /FO CSV > search.log
FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO end
cd "C:\windrop\"
eggdrop
:end
del search.log
@cls |
This line quotes specify the directory path where installed the windrop (eggdrop for windows). Usually it is 'C:\windrop'. If you have it installed on another path, specify it.
2) Go to Windows scheduled tasks.
To open Scheduled Tasks, click Start, click All Programs, point to Accessories, point to System Tools, and then click Scheduled Tasks.
This link explains in full how to schedule a task in Windows XP.
After scheduled task:
Click the Schedule tab, and then click Advanced.
Click to select the Repeat task check box, and then specify the number of minutes or hours in which you want the task to be repeated.
In the link I shared explains step by step the whole process.
Windows Server 2003 (Non Tested)
1) Create a batch file (* .bat) with any text editor, preferably Notepadd ++, but can be even notepad, making sure that the file extension is BAT and no TXT.
The filename can be anything, i.e autobotchk.bat
BATCH for Windows Server 2003
| Code: | @echo off
tasklist /FI "IMAGENAME eq eggdrop.exe" /FO CSV > search.log
FINDSTR eggdrop.exe search.log > found.log
FOR /F %%A IN (found.log) DO IF %%~zA EQU 0 GOTO end
cd "C:\windrop\"
eggdrop
:end
del search.log
del found.log
@cls |
2) Go to Windows scheduled tasks.
To open Scheduled Tasks, click Start, click All Programs, point to Accessories, point to System Tools, and then click Scheduled Tasks.
This link explains in full how to schedule a task in Windows Server 2003. See How to Create a Scheduled Task _________________ If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks  |
|
| Back to top |
|
 |
primus Voice
Joined: 31 Jul 2015 Posts: 12 Location: West Coast
|
Posted: Sat Sep 12, 2015 3:08 am Post subject: |
|
|
Works like a champ in Win7 too... The instant my thinclient boots, windrop starts. If windrop dies or crashes for some unknow reason, a few minutes later its back...
Setup of the task is the same, however the route to take to get to the scheduler is different. A simple search in control panel will lead you to it...
Thanks for the info! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|