Title: RE: Error using File::Copy within a script executed by 2000's Scheduler
Does the batch script map the drive?  When you run a program from W2k's Task Scheduler, it will use your permissions, but it will not necessarily re-map your drives for you.  Try using the full UNC path.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 2:39 PM
To: 'David Kramer'; [EMAIL PROTECTED]
Subject: RE: Error using File::Copy within a script executed by 2000's Scheduler

Does any error get written to the Event Log about a permissions problem?

Also, what do $! and $^E specifically return when the error occurs?

-Jason

-----Original Message-----
From: David Kramer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 04:37 PM
To: [EMAIL PROTECTED]
Subject: Error using File::Copy within a script executed by 2000's
Scheduler


I am currently trying to copy an Access MDB file from a mapped network drive using the copy method from the FILE::COPY module.  The Perl script executes cleanly from command line.  The perl scripts also executes correctly when I call it from a Batch Script.  The error occurs when I schedule the Batch script within 2000 scheduler.  Im capturing the error via an IF statement that validates a return code that I populate from the copy method call.  Im out of ideas here, please help!  Let me know if you need more info.


Thanks,
 
David Kramer
=
Z)fyXXh'`)?lzry+Z(:.?
mm?+-1bjoj)fj?

--------------------------------------------------------------------------------
This email may contain confidential and privileged
material for the sole use of the intended recipient.
If you are not the intended recipient, please contact
the sender and delete all copies.

Reply via email to