Modify

Opened 16 years ago

Closed 14 years ago

#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 16 years ago.

Download all attachments as: .zip

Change History (11)

by Evilertoaster, 16 years ago

comment:1 by Evilertoaster, 16 years ago

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 J-Paul Mesnage, 16 years ago

Type: BugFeature Request

comment:3 by TicketCleanup, 16 years ago

Version: 3.3.6.0

Automatic ticket cleanup.

comment:4 by J-Paul Mesnage, 16 years ago

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, 16 years ago

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 J-Paul Mesnage, 16 years ago

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 J-Paul Mesnage, 16 years ago

Owner: set to Jon
Status: reopenedassigned

comment:8 by guinness, 14 years ago

Last edited 14 years ago by guinness (previous) (diff)

in reply to:  8 comment:9 by J-Paul Mesnage, 14 years ago

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, 14 years ago

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.