Fileexists, Fileopen und Filecopy bringen immer ReturnCode "nicht 0".
Einfaches Beispiel:
Global $FPath
Global $File
$FPath = "C:\Users\mail\Desktop"
$File = "TextDir.txt"
If FileExists($FPath & "\" & $File) Then
MsgBox(0, "", "File Found")
Else
MsgBox(0, "", "File not Found")
EndIf
If FileExists(@DesktopDir & "\" & $File) Then
MsgBox(0, "", "File Found")
Else
MsgBox(0, "", "File not Found")
EndIf
Die TextDir.txt habe ich nach Desktop kopiert.
Das Script bringt in beiden Fällen "not Found".
(Windows 10, AutoItVersion = 3.3.15.0)
Das muss wohl ein sehr dummer Fehler bei mir sein.
Bitte helft mir.
Sonnige Frühlingsgrüße
Friedhelm