> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/tasks/tasks/smb.md).

# Smb

Frends offers seamless integration with [SMB](https://en.wikipedia.org/wiki/Server_Message_Block), enabling you to easily connect to network file shares and automate file-based workflows across your systems.

Frends provides tasks for performing all core SMB file operations, such as copying, moving, deleting, and managing files and directories on SMB shares.

By leveraging Frends’ task-based approach, you can configure and customize SMB integrations to meet your specific requirements. Frends offers a versatile set of file operation tasks that make it easy to integrate SMB file shares with a wide range of systems and processes.

## Use cases

Below you will find typical use cases for SMB integrations and how they are implemented in Frends.

### Write a file to an SMB share

By using the [`Smb WriteFile`](/tasks/tasks/smb/writefile.md) task we can create an integration that saves data to an SMB share.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-80de44a003443e8501c789f71512bf05ab337dd2%2Fsmb-write-file.svg?alt=media&amp;token=63711406-969a-4bf5-a22e-fb4bd842198a" alt=""><figcaption><p>Write file</p></figcaption></figure>

### Copy files inside SMB share

By using s the [`Smb CopyFiles`](/tasks/tasks/smb/copyfiles.md) task we can copy files from one directory to another within an SMB share. It offers flexible file selection through patterns and configurable behavior for existing files, directory creation, and structure preservation.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-3f7cd49fd6e83a7325094e643cd01fdacf52182b%2Fsmb-copy-files.svg?alt=media&amp;token=31c997a0-b09d-49d6-bcd4-3afd103941d0" alt=""><figcaption><p>Copy files</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.frends.com/tasks/tasks/smb.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
