egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

autobotchk for windrop (Windows XP and Windows Server 2003)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
juanamores
Master


Joined: 15 Mar 2015
Posts: 317

PostPosted: Thu May 21, 2015 11:26 pm    Post subject: autobotchk for windrop (Windows XP and Windows Server 2003) Reply with quote

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.
Code:
cd "C:\windrop\"

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 Smile
Back to top
View user's profile Send private message
primus
Voice


Joined: 31 Jul 2015
Posts: 12
Location: West Coast

PostPosted: Sat Sep 12, 2015 3:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber