Modify

#1631 closed Feature Request (Rejected)

Get FilePath from file handle

Reported by: evilertoaster Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

I had previously sent this as a cod submission via the method described here: http://www.autoitscript.com/autoit3/files/coders/submission_spec.txt

But it appears support@… is no longer a valid email address according to the yahoo mailer daemon... Regardless, here was the email:



In relation to this post: http://www.autoitscript.com/forum/index.php?showtopic=114541

The solution is trivial, (I've attached a code submission implementing it)... but so is the issue itself.
Because of the nature of 'includes' in AutoIt there's not much practicality to providing this function, but it may have use in plugins or ActiveX/COM where you may be trying to get the FilePath from a handle given to you by non-public code.

Attachments (1)

AU3-Evilertoaster-2010-05-18.zip (144.2 KB ) - added by Evilertoaster on May 18, 2010 at 10:09:33 PM.

Download all attachments as: .zip

Change History (11)

comment:1 by Evilertoaster, on May 18, 2010 at 10:18:09 PM

This should be a feature request, not a bug... I can't seem to edit the ticket type after I made it...

comment:2 by Jpm, on May 19, 2010 at 10:27:04 AM

Type: BugFeature Request

comment:3 by TicketCleanup, on May 19, 2010 at 12:00:02 PM

Version: 3.3.6.0

Automatic ticket cleanup.

comment:4 by Jpm, on May 20, 2010 at 8:16:04 AM

Resolution: Rejected
Status: newclosed

as a solution can be done with a UDF using GetFinalPathNameByHandle windows API.
We don't plan to extend AutoIt builtin function.

comment:5 by evilertoaster, on May 20, 2010 at 5:40:07 PM

A solution cannot be done with that API. GetFinalPathNameByHandle() only works on the Windows API HANDLE structs. The request was for this ability on native AutoIt handles, which use standard FILE* structs.

in reply to:  5 comment:6 by Jpm, on Jun 3, 2010 at 9:50:04 AM

Resolution: Rejected
Status: closedreopened

Replying to evilertoaster:

A solution cannot be done with that API. GetFinalPathNameByHandle() only works on the Windows API HANDLE structs. The request was for this ability on native AutoIt handles, which use standard FILE* structs.

I read a liitle too fast the forum.
I will reopen it to get feedback from other Dev's

comment:7 by Jpm, on Jun 3, 2010 at 9:50:20 AM

Owner: set to Jon
Status: reopenedassigned

in reply to:  8 comment:9 by Jpm, on Nov 7, 2011 at 3:02:50 PM

Replying to guinness:

This is an Example of how to achieve this using native code - http://www.autoitscript.com/forum/topic/134578-filenamebyhandle-find-a-filepath-using-the-handle-returned-by-fileopen/.

It is not using native code as comment 5 request it

comment:10 by trancexx, on Jun 19, 2012 at 5:13:57 PM

Resolution: Rejected
Status: assignedclosed

This really isn't necessary.

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.