﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1828	Strange behavior with IniWrite	Tlem		"Hello, a member of the French forum point us for a strange behavior of the WriteIni command if you use FileOpenDialog before and don't specifies the path of the ini file.

This is the simple test script :
{{{
#include <GUIConstants.au3>

Global $Var = ""C:\MyDir1\MyDir2\MyDir3\MyFile.exe""

GUICreate('',180,50)
$Button1 = GUICtrlCreateButton(""Get File Path"", 5, 5, 80, 40)
$Button2 = GUICtrlCreateButton(""Write ini"", 90, 5, 80, 40)
GUISetState()

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        Case $Button1
            $Var = FileOpenDialog(""Select a file"", @DesktopDir, ""(*.*)"")

		Case $Button2
            IniWrite(""Test.ini"", ""Parameters"", ""Var"", $Var)

    EndSwitch
WEnd
}}}

If you click ""Write ini"" button before doing anything else, the file is created.
If you click ""Get File Path"" button before, the IniWrite action doesn't work ...

After some searches, we have noticed that if we specifies the path of the ini file, the IniWrite action always work ...

The documentation doesn't specifies if the full path of the inifile must be used. So is it a bug or did we miss something?"	Bug	closed		AutoIt	3.3.6.1	None	No Bug		
