views:

271

answers:

1

I need to use mkdir on a network path, which is on a different domain. I can login into the network properly, however nant is not able to. I setup a network drive on the system where nant runs, however it still cant access it. Does anybody know how to achieve this?

+1  A: 

Mount the shared folder with valid credentials:

net use J: \\servername\share  password /user:username

Copy files to J: like you normally would.

When your all done disconnect the mapped drive.

  net use J: /d
KyleLanser
But then I would have to disclose my password? Besides that I created the shared folder manually using my credentials and told it to save them.
vikasde
yes you would need to store a password in the nant script, the shared folder could be setup with any network account, so making a seperate account for this might be an option.
KyleLanser