I'm using Windows task manager to execute PHP scripts on schedule.

To do this I'm using a simply BAT file to run the command.

start C:\wamp\bin\php\php5.3.5\php.exe C:\wamp\www\site\test.php arg1 arg2

To testing the cron job I have it updating a text file with the date / time. Running the BAT file or script directly works file, the problem I'm having is when the task is run with Task Manager the relative paths are relative to a folder in the Task Manager, and not the script.

Is there anything I can do to make the paths relative to the script folder and not Windows Task Manager?