> For the complete documentation index, see [llms.txt](https://wfsys.gitbook.io/workflow-forms-syntax/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wfsys.gitbook.io/workflow-forms-syntax/workflow_forms/commands/replace_file_command.md).

# ReplaceFileCommand

## Шаблон ReplaceFileCommand <a href="#template_replace_file_command" id="template_replace_file_command"></a>

```xml
<Command Name="" Type="ReplaceFileCommand" Assembly="Commands">
  <!--Тэги, общие для всех команд-->
  <Condition Name="" />
  <Lock Value="" />
  <!--Тэги, специфичные для ReplaceFileCommand-->
  <Async Value="" />
  <FileName></FileName>
  <FileGuid></FileGuid>
</Command>
```

## Описание ReplaceFileCommand <a href="#description_replace_file_command" id="description_replace_file_command"></a>

```xml
<Command Name="ReplaceFileCommandName" Type="ReplaceFileCommand" Assembly="Commands">
  <!--Тэги, общие для всех команд-->
  <!--Тэги, специфичные для ReplaceFileCommand-->
</Command>
```

### Результаты выполнения ReplaceFileCommand <a href="#result_replace_file_command" id="result_replace_file_command"></a>

Команда результата не имеет.

## Тэги, специфичные для ReplaceFileCommand <a href="#tags_replace_file_command" id="tags_replace_file_command"></a>

### Async <a href="#async" id="async"></a>

Признак, определяющий, будет ли выполнение команды происходить в асинхронном режиме (в фоновом потоке).

Необязательный тэг. Значение тэга не ожидается.\
Обязательный атрибут `Value` ожидает логическое значение

По умолчанию используется значение False.

```xml
<Async Value="False" />
```

### FileName <a href="#file_name" id="file_name"></a>

Полный путь до файлов, которые будут отправлены на сервер.

Обязательный тэг. Любое значение будет переведено в массив текстовых значений.

Поддерживаются [константы замены](/workflow-forms-syntax/workflow_forms/values/replacement_constants.md).

```xml
<FileName>FullPath\\FileName.ext</FileName>
```

### FileGuid <a href="#file_guid" id="file_guid"></a>

Guid'ы файлов на сервере.

Обязательный тэг. Любое значение будет переведено в массив текстовых значений.

```xml
<FileGuid>Guid</FileGuid>
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wfsys.gitbook.io/workflow-forms-syntax/workflow_forms/commands/replace_file_command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
