# Move file to network pc

**URL:** <https://discourse.nodered.org/t/move-file-to-network-pc/17171>\
**Category:** General\
**Created:** [26 October 2019 14:16 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171 "2019-10-26T14:16:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![matrixratrix](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@matrixratrix](https://discourse.nodered.org/u/matrixratrix)\
**Post date:** [26 October 2019 14:16 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/1 "2019-10-26T14:16:14Z")

</div>

Hello,

I'm totally new to node red, and also raspberry, and I am trying to fight to move txt files to a pc within the network.

I trying use the "node-red-contrib-fs-ops" move node , there no problem when files are moved between folders within raspberry.

But an error occurs when the file tries to be moved to a folder with the root on another pc within the network.

this folder is properly shared, and I can access it by browsing the network.

Can someone point me the right way?

Thanks

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [26 October 2019 14:38 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/2 "2019-10-26T14:38:10Z")

</div>

> [@matrixratrix](#):
>
> an error occurs

What error does it tell you?

---

<div class="post-metadata">

**Author:** ![matrixratrix](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@matrixratrix](https://discourse.nodered.org/u/matrixratrix)\
**Post date:** [26 October 2019 14:51 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/3 "2019-10-26T14:51:51Z")

</div>

> [@ukmoose](#):
>
> What error does it tell you?

Thank you,

This is the error:

 ![moved](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/fa24fe822b4bab888b67817aeabad3c89080d04d.jpeg)

thanks

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [26 October 2019 15:44 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/4 "2019-10-26T15:44:29Z")

</div>

I don't think you can simply copy files from a Pi to a Windows share without mounting the windows share on the Pi or other involved methods

I've never managed to do it ☹

---

<div class="post-metadata">

**Author:** ![matrixratrix](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@matrixratrix](https://discourse.nodered.org/u/matrixratrix)\
**Post date:** [26 October 2019 15:52 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/5 "2019-10-26T15:52:25Z")

</div>

Thank you,

In fact is not windons, is Centos (linux), but it makes no difference anyway, it's exactly the same error  
linux or windons,

There is any away to mount a unit by node-red?

Thanks

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [26 October 2019 16:00 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/6 "2019-10-26T16:00:11Z")

</div>

If you are copying from one machine to another, then I'd use the `scp` command line tool to do the copy. Once I had the command working outside of Node-RED, I'd use an Exec node to run it from within Node-RED.

---

<div class="post-metadata">

**Author:** ![matrixratrix](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@matrixratrix](https://discourse.nodered.org/u/matrixratrix)\
**Post date:** [26 October 2019 16:05 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/7 "2019-10-26T16:05:48Z")

</div>

Sorry, "scp"? here I can set?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 October 2019 16:16 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/8 "2019-10-26T16:16:37Z")

</div>

[https://linux.die.net/man/1/scp](https://linux.die.net/man/1/scp)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 October 2019 20:15 UTC](https://discourse.nodered.org/t/move-file-to-network-pc/17171/9 "2019-10-26T20:15:54Z")

</div>

I agree that SCP is likely to be the easiest between 2 Linux devices.

If you really do need to use the SMB share, look here:

[https://wiki.samba.org/index.php/Mounting\_samba\_shares\_from\_a\_unix\_client](https://wiki.samba.org/index.php/Mounting_samba_shares_from_a_unix_client)
