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: Select all
@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
Code: Select all
cd "C:\windrop\"
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: Select all
@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
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