I do most of my development work in windows so I emulate cron jobs with windows task scheduler. But when I run a task it does not successfully include the includes in the php file, so I can't use my database connection includes. I have been building the necessary includes into the scripts but that is pretty annoying and time consuming.

task scheduler is set to run a .bat file named scheduled-task.bat which contains:

"cmd /K C:\wamp\bin\php\php5.3.8\php.exe -f C:\wamp\www\site\cron.php" (no quotes)

Any idea on how to fix this so my included files are actually included?