Reply To: Ipod Share

#9299
rpedde
Participant

@blamm wrote:

Oh…

Can I use it?

Dang it… now I’m on the spot.

Would something like this work?

— check.bat —

if exist x:notes goto connected
goto notconnected

:connected
if exist c:connected.sem goto end
net start “firefly music server”
echo. > c:connected.sem
goto end

:notconnected
if exist c:notconnected.sem goto end
net stop “firefly music server”
echo. > c:notconnected.sem

:end
— check.bat —

— checker.bat —
:start
sleep 10
call check.bat
goto start
— checker.bat —

You’d have to change the drive letter for the ipod, but if you run the “checker.bat”, that should start and stop the service whenever the iPod is plugged in, right?

Cheesy, yeah…