I am sorry, I gave you incorrect information.
I don't speak English and web traslations are no good.
This is the trick for your script.
Set Error Capture [ On ]
Set Variable [ $file; Value:"filewin:" & Get ( DesktopPath )& "namefolder" & settings::globaltextnamefilewithextension ]
Import Records [ Source:“$file”; Method:Update existing; Character Set:“Windows ANSI”] [ No dialog ] [color:red]target:unknown
If [ Get ( LastError ) = 100 ]
Show Custom Dialog [ Title: "verify"; Message: "file not exsists"; Buttons: “OK” ]