Normally I'm all in favour of Perl solutions, but doing something every 2 hours is something that really calls out for a
cron process or whatever the Windows equivalent is.
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)