Scheduled Task copying files to mapped drive
807569Jul 7 2006 — edited Jul 9 2006Hi,
I have a simple program which copies files from a local drive to a mapped network drive. It needs to run regularly so I have a windows scheduled task to fire off a batch job which runs the program. Simple enough but when it runs I get an error:
java.io.FileNotFoundException: X:\BACKUP\2034512.LOG (The system cannot find the path specified)
The program is first checking if the file exists on the target before copying and this is where it falls over.
The odd thing is it all works fine from the command line, but when run as a scheduled task it fails. I am logged on as the same user, the X drive is definitely mapped as I check this in the batch file and the path is valid.
Any ideas???