Hi,
When I open a file dialog and select any file then the script cant open the temp.txt file.
If I choose cancel in the file dialog the script will open the temp.txt file.
Why is that?
//Johan
$message = "Select new driver file"
$var2 = FileOpenDialog($message, "C:\Windows\system32\drivers\", "All (*.sys)")
$file = FileOpen("temp.txt", 0)
; Check if file opened for reading OK
If $file = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf