The first question to make sure you have addressed is user
permissions.
Whenever somebody says a tasks works when run directly by
them, but
does not run correctly in as a scheduled task, nine times out
of ten it
is permissions.
When you run the file your system/domain/network permissions
are used.
When run as a scheduled task, the user assigned to the
coldfusion
service is uses. This is the 'localsystem', user by default
which no
permissions outside of the local system unless modified.
One way to debug what is going on is to make sure you have
set up a file
to write output to in the schedule task form. Then look at
this file to
see any error messages generated by running the task. Also
output data
as the process runs so one can see what is going on when the
task is run.