Storing over the network

  • Thread starter Thread starter Harish
  • Start date Start date
H

Harish

I wrote a batch file to save some data in another server.
If i execute the batch file manually the backup is being
done. If i put the batch file in a scheduler and run it
the backup is not being created.

Can anyone help me out in solving the problem.
 
You are probably referencing a location by a drive letter that isnt
mapped when the "batch file" is run by the scheduler.
 
Harish said:
I wrote a batch file to save some data in another server.
If i execute the batch file manually the backup is being
done. If i put the batch file in a scheduler and run it
the backup is not being created.

Can anyone help me out in solving the problem.

This is most likely a permissions problem. You can easily find
out yourself, by modifying your batch file like so:

xcopy "C:\Some Folder\*.*" \\SomeServer\SomeShare\SomeFolder\
1>c:\test.log 2>c:\test.err
(unwrap line)

Now examine the two log files and everything will become crystal clear!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top