Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Scheduled Task copying files to mapped drive

807569Jul 7 2006 — edited Jul 9 2006
Hi,
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???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2006
Added on Jul 7 2006
2 comments
133 views