Cool. Glad that fixed it on your system. Doesn't seem to affect operation on my XP system, so I've rebuilt the moodle-cron-for-windows.zip on the server with those changes in it.
Thanks - that will help others in future.
Installing and upgrading help
Problem with Cron for Windows
This discussion has been locked so you can no longer reply to it.