Functionality
--------------
This adds FileGetPath

Based on sources
----------------
V3.1.0


***********************************************************
******************* script.h
***********************************************************

typedef struct
{
	int			nType;		// Type of entry stored (fileopen, or filefind)

	// File Open
	FILE		*fptr;			// File handle
	int			nMode;		// Mode the file was opened in (0=read, 1=write)
	AString		sPath;			//Relative path to the file

	// File Find
	HANDLE		hFind;			// Find handle
	char		*szFind;		// First search result (or NULL on 2nd, 3rd, etc)

} FileHandleDetails;

***********************************************************
****************** script.h
***********************************************************

add
AUT_RESULT	F_FileGetPath(VectorVariant &vParams, Variant &vResult);

***********************************************************
***************** script.cpp
***********************************************************

add
{"FILEGETPATH", &AutoIt_Script::F_FileGetPath, 1, 1},

***********************************************************
***************** script_file.cpp
***********************************************************

///////////////////////////////////////////////////////////////////////////////
// FileGetPath()
///////////////////////////////////////////////////////////////////////////////

AUT_RESULT AutoIt_Script::F_FileGetPath(VectorVariant &vParams, Variant &vResult)
{
	// FileClose(<filehandle>)
	// mode 0=read, mode1=write

	int nHandle = vParams[0].nValue();

	if (nHandle < 0)
		return AUT_OK;

	if (nHandle >= AUT_MAXOPENFILES || m_FileHandleDetails[nHandle] == NULL)
	{
		FatalError(IDS_AUT_E_FILEHANDLEINVALID);
		return AUT_ERR;
	}
	else
	{
		vResult = m_FileHandleDetails[nHandle]->sPath.c_str();
	}

	return AUT_OK;

} // FileGetPath()