> For the complete documentation index, see [llms.txt](https://docs.gpmautomate.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gpmautomate.com/huong-dan-cac-action/file-and-folder/move-rename-file.md).

# Move/rename file

Move / rename file là hành động đa năng dùng để di chuyển một tệp tin từ vị trí này sang vị trí khác, hoặc đổi tên của tệp tin đó ngay tại vị trí hiện tại trên ổ cứng máy tính.

Khác với sao chép (Copy file), hành động này sẽ cắt hẳn dữ liệu sang vị trí mới (nếu di chuyển) hoặc thay thế hoàn toàn tên cũ (nếu đổi tên).

🎥 Xem thêm video hướng dẫn: [Tại đây](https://youtu.be/EH7olDLAb9c).

#### Tham số cấu hình:

* Source File: Đường dẫn tuyệt đối của file nguồn cần di chuyển hoặc cần đổi tên (Ví dụ: `D:\data\old_name.txt`).
* Destination File: Đường dẫn tuyệt đối của file đích nơi chuyển đến, hoặc đường dẫn chứa tên file mới sau khi đổi (Ví dụ: `E:\backup\old_name.txt` hoặc `D:\data\new_name.txt`).

#### Ví dụ thực tế: Đổi tên file (Rename)

Bạn vừa tải một file ảnh về và muốn đổi tên nó thành tên có ý nghĩa trước khi tải lên mạng xã hội để tránh trùng lặp.

* Source File: `D:\downloads\image.jpg`
* Destination File: `D:\downloads\avatar_profile_1.jpg` (giữ nguyên thư mục, thay đổi tên file ở cuối).
* Kết quả: File `image.jpg` sẽ biến mất và được đổi tên thành `avatar_profile_1.jpg`.

<figure><img src="/files/jsUGlbWpkQqVpiScAy2G" alt=""><figcaption></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 dynamically by asking a question.

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

```
GET https://docs.gpmautomate.com/huong-dan-cac-action/file-and-folder/move-rename-file.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
