# UPDATEOLEPATHBYFOLDER System Variable
[GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [System Variables](Help%20System/GSTARCAD/2027/System%20Variables/(System%20Variables).md) → [U](Help%20System/GSTARCAD/2027/System%20Variables/U/(U).md)
## Function Description:
The UPDATEOLEPATHBYFOLDER system variable is used to control OLE link file finding logic.
| | |
| --- | --- |
| Type | Integer |
| Saved in | Registry |
| Initial value | 0 |
## System Variable Value:
**0:** Prioritizes the search for the corresponding external file according to the link path saved in the database.
**1:** Priority is given to finding external files in the same directory as the drawing file to link to.
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/systemVariables_Ugsv/UPDATEOLEPATHBYFOLDER.html) · © Gstarsoft Co., Ltd.