How to give credentials in a batch script that copies files to a network location?
Try using the net use command in your script to map the share first, because you can provide it credentials. Then, your copy command should use those credentials. net use \\<network-location>\<some-share> password /USER:username Don’t leave a trailing \ at the end of the