Ich wei- jetyt nicht wo das noch muckt. Case $Button1S Funzt gut. Doch warum wird jetzt die SkriptPathangaben.txt in den Ordner gespeicher wo der Phad liegt? Die Datei existiert in dem Ordner wo die .au3 ist. Also mein Naviigations Datenbank programm xD.
Spoiler anzeigen
Case $Button1S
$re = FileOpenDialog("Datei öffnen", @DesktopDir, "Alle Dateien (*.*)")
If @error Then
MsgBox(16, Default, "FOD", 5)
EndIf
GUICtrlSetData($Input1S, $re)
Case $Button2S
$Path = GuiCtrlRead($Input1S)
If FileExists(@ScriptDir & '\SkriptPathangaben.txt') Then
$file = FileOpen ( "SkriptPathangaben.txt", 1 )
If $file = -1 Then
MsgBox(0, "Error", "Kann Datei nicht Öffnen!")
Exit
EndIf
FileWrite($file, @CRLF)
FileWrite($file, $Path )
FileClose($file)
Else
MsgBox(4096,"Warnung" , "SkriptPathangaben.txt does NOT exists")
EndIf
msgbox(0, "INFO", "Phad gespeichert")
PS> Hab den Fehler gefunden $file = FileOpen (@ScriptDir & "\SkriptPathangaben.txt", 1 ) so mus es sein.