Hi @cauan.silva ,
We assume you are having the default path value in the text field you are referring.
As suggested by @rahulsharma first use Get text activity in the UiPath to read the default value from the text field and store in a variable.
Now use string replace function to replace the desired path in the default path you extracted from the text field.
For a final path with the above replace method store in a final path string.
Now use type into activity and assign the final path as input string. And also make sure that you have to check the check box Empty filed one of the property of type into which is used to empty the default values under text fields. So it will deplete the default value before entering the final path so this time it will enter the correct path.
please follow the above steps and let us know if you stuck anywhere or you could share us screenshots so that we would guide you better. thanks.