Discussion Locked

Copying files from one server to another

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When I run a scheduled (Norton Program Scheduler) batch file that copies a file from one server to another, I get an Access Denied message. It does not happen when I execute the batch file from the command prompt, only when the batch file is scheduled. The batch file looks like this:

pkzip backup.zip
copy backup.zip \\server1\backup

(backup is a shared folder)

11 replies

by mrdbcooper

To answer this better I need
to get some more information.
The Norton Scheduler, was it installed
with Administrator rights? And does
it maintain those rights when it runs
its backup.
I have a idea that you can run the batch
manually as you are logged in with the
proper rights, but your automatic scheduler
does not have those rights.

Please let me know and we'll see what can
be done.

Thanks for your Question!

by aekland

Make sure the account that norton scheduler service is running under has rights to the local file and to server1\backup.

by tedstidham

It is possible that the first command has not finished before NPS lauches the second. If this is the case Pkzip will still have the backup.zip file open.

Thy this: use (/w or /wait)

start pkzip backup.zip /w
copy backup.zip \\server1\backup

This will wait (/w, or /wait) until the file is zipped before the copy.

by slora

I agree that replication might be a better tack, but if you need to use Norton, try this:

To elevate and control the privileges of NPS, go to Control Panel>Services>Norton Program Scheduler>Startup>Logon as>This account

Specify an account thathas privileges to perform the copy operations. You can use an existing utility username, or you can create a new user in User Manager for Domains.

This discussion is closed to new replies.