# Move file to smb nas folder

**URL:** <https://discourse.nodered.org/t/move-file-to-smb-nas-folder/68740>\
**Category:** General\
**Created:** [9 October 2022 00:52 UTC](https://discourse.nodered.org/t/move-file-to-smb-nas-folder/68740 "2022-10-09T00:52:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stain3565](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stain3565/32/68179_2.png) [@stain3565](https://discourse.nodered.org/u/stain3565)\
**Post date:** [9 October 2022 00:52 UTC](https://discourse.nodered.org/t/move-file-to-smb-nas-folder/68740/1 "2022-10-09T00:52:24Z")

</div>

I am creating my first node-red flow to read new emails containing a mp4 attachment and extract this to a folder. This is working. However, my next step is to move or copy that file from the folder into the samba share on a NAS on my network. I have tried a few things with the smb node but have not got it to work at all. In fact, my windows node-red crashed last time it tried to process the smb node. I have a full filename, including path, for the file, in msg.filename, and will want to place this in a sub-folder on the smb share. I will also want the source file to be removed on completion (i expect a move would do this anyway).

Anybody got examples of using smb node to do this?

One other thought. I am testing this in windows but, once complete, i will be moving this to run on a Raspberry pi home assistant system. Can anyone foresee any issues likely to occur on raspbian os as opposed to windows?

---

<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:** [9 October 2022 01:51 UTC](https://discourse.nodered.org/t/move-file-to-smb-nas-folder/68740/2 "2022-10-09T01:51:55Z")

</div>

Never used the smb node I'm afraid. Personally I would do it by mounting the share into the filing system and using the standard file node instead.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 December 2022 01:52 UTC](https://discourse.nodered.org/t/move-file-to-smb-nas-folder/68740/3 "2022-12-08T01:52:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
