Files included:
WAIT4 .EXE - Main program (c) Christian Kaderud
WPLANY .EXE - Windows WAV-player
EXAMPLE .BAT - Exampe Batch-file
WAIT .NFO - This phile
--- EXAMPLE.BAT ---
:start ;start the loop
@echo off
c:
cd\bat
wait4.exe /cs:\chat.now /m1440 ;execute the EXE, wait for the file S:\CHAT.NOW
;to be created, max 1440 minutes
IF ERRORLEVEL 3 GOTO end ;error in commandline, goto end
IF ERRORLEVEL 2 GOTO end ;ESC pressed, goto end
IF ERRORLEVEL 1 GOTO file_exist ;if the file is created, goto file_exist
IF ERRORLEVEL 0 GOTO end ;timelimit exceeded, goto end
:file_exist
c:\bat\wplany c:\music\test.wav ;* run the WPLANY.EXE to play a WAV-file
DEL s:\chat.now ;then delete the semaphore-file
GOTO start ;goto start and wait for file to be created
:end ;ending program
--- EXAMPLE.BAT ---
*) Here you can put whatever you want
yepp, i think that's all... enjoy!
zija!
//Scorp!