jcomboue
11th December 2007, 16:18
Hi everybody,

I have a probleme to copy file by the network in .bat

i have a .bat with :
copy \\computername\directory1\toto.mail \\computername\directory2\toto.mail

where computername is a computer on the network.

this .bat stored on BAAN server and started in BAAN JOB with 'add script to job'

In BECS, if i logged with DOMAIN\username and my passord all it's OK.
But if i logged whit CURRENT USER (the same because it's WINDOWS DOMAIN and my account) it doesn't work.

Can you help meeeeeeeeeeee

DonHill
11th December 2007, 16:37
The user you have specified to run the Baan job needs rights to the files/directories you have specified, since that is the user that will actually be running the .bat file. It has nothing to do with your credentials since it is executing on the server.

jcomboue
11th December 2007, 16:46
In each case it's the same USER.
The JOB started by ACTIVATE JOB in TOOLS.

The difference is CURRENT USER or DOMAIN\username when i'm logged to BAAN.

And if i logged in DOMAIN\username it's OK