> For the complete documentation index, see [llms.txt](https://zamberetta.gitbook.io/auctus-class-library/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zamberetta.gitbook.io/auctus-class-library/reference/automation/slnet/senddmsfilechange-engine-string.md).

# SendDmsFileChange(Engine, String)

Triggers a file sync on the DMS for the target file, note that the target file must be on the same DMA to which this call is being triggered from.

{% code title="Declaration" %}

```csharp
public static SetDataMinerInfoResponseMessage SendDmsFileChange(Engine engine, string filePath)
```

{% endcode %}

{% code title="Example" %}

```csharp
SLNet.SendDmsFileChange(engine, "C:\Skyline DataMiner\ProtocolScripts\epic.dll");
```

{% endcode %}

{% code title="Result" %}

```csharp
SetDataMinerInfoResponseMessage
```

{% endcode %}

<table><thead><tr><th width="134.33333333333331">Type</th><th width="114">Name</th><th>Description</th></tr></thead><tbody><tr><td><a href="https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Engine.html">Engine</a></td><td>engine</td><td>Interfaces with the DataMiner System from an Automation script.</td></tr><tr><td><a href="https://learn.microsoft.com/dotnet/api/system.string">String</a></td><td>filePath</td><td>The target file to sync (local path on the DMA).</td></tr></tbody></table>

{% hint style="info" %}
At the time of testing only files in "C:\Skyline DataMiner\ProtocolScripts" appear to get synced.
{% endhint %}
