"error in access to network drive path using BAMBOO task"
Asked by Naveen Kumar:

The batch file which works locally is not working fine with Bamboo,

For example inorder to copy a file from Network drive, the batch script is as below.

1)

~N:~

~cd N:\DC-RW_Ext-RW\HLI LCU\LEAR\Nkumar\BambooFile\TextFile~

~copy B19_Variant.txt C:\temp~

Where `N:\` is a Mapped drive

2)

Locally called the command working fine as shown below(calling "overrite.bat" file),

srr1.jpg

3)

But with Bamboo task calling the same batch file as shown below,

srr2.jpg

4)

And for that task getting the below error,

srr5.jpg

Can anyone please suggest...?  
[](https://community.atlassian.com/t5/Bamboo-questions/quot-error-in-access-to-network-drive-path-using-BAMBOO-task/qaq-p/55786?attachment-id=1112){#link_11690a310c8d73}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/1735/1/srr5.jpg){#display_11690a310c8d73_0}  
[](https://community.atlassian.com/t5/Bamboo-questions/quot-error-in-access-to-network-drive-path-using-BAMBOO-task/qaq-p/55786?attachment-id=1113){#link_11690a310c8d73_0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/1735/2/srr1.jpg){#display_11690a310c8d73_2}  
[](https://community.atlassian.com/t5/Bamboo-questions/quot-error-in-access-to-network-drive-path-using-BAMBOO-task/qaq-p/55786?attachment-id=1114){#link_11690a310c8d73_1}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/1735/3/srr3.jpg){#display_11690a310c8d73_4}  
[](https://community.atlassian.com/t5/Bamboo-questions/quot-error-in-access-to-network-drive-path-using-BAMBOO-task/qaq-p/55786?attachment-id=1115){#link_11690a310c8d73_2}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/1735/4/srr2.jpg){#display_11690a310c8d73_6}


Answers:
author: Peter Van de Voorde
body: Did you create the network drive on your Bamboo Agents to?

And with the same name? (N:)

And does the system user that runs your bamboo agent have access to this network drive?

All those things might cause this problem.

Best regards,

Peter

comments: author: Naveen Kumar
body: Yes the Network drive is create, and with the name (N:)Yes the user has the access to network drive, and it is working fine with command prompt(already there is the image attached)


author: Peter Van de Voorde
body: Ok, just wanted to make sure that you were running the command prompt from the bamboo agent server and not from the bamboo server itself.


author: Peter Van de Voorde
body: Why do you do a cd first? Why not a copy directly?


author: Naveen Kumar
body: Thanks for your reply....first i am swicting to N:\\ drive(as you can see my first line of command is "N:")...since by default points to C:\\ drive.


author: Peter Van de Voorde
body: I mean can't you just do "copy N:\\DC-RW_Ext-RW\\HLI LCU\\LEAR\\Nkumar\\BambooFile\\TextFile\\B19_Variant.txt C:\\temp" ??I don't really have any idea what might be the problem, other than a configuration of the server.


author: Naveen Kumar
body: Yes, it works fine with command line but in bamboo i am getting error "The system cannot find the path specified". If you have time could you please try similar as ("copy N:\\DC-RW_Ext-RW\\HLI LCU\\LEAR\\Nkumar\\BambooFile\\TextFile\\B19_Variant.txt C:\\temp") wit a batch file with bamboo. sorry for disturbing you


author: Naveen Kumar
body: Finalllyyyyy.........This works from Bamboo.////////////net use N: \\\\sharedpath password /user:name /persistent:yes copy N:\\DC-RW_Ext-RW\\HLI LCU\\LEAR\\Nkumar\\BambooFile\\TextFile\\B19_Variant.txt C:\\tempnet use N: /delete////////////