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)
Change History (11)
by , 16 years ago
| Attachment: | AU3-Evilertoaster-2010-05-18.zip added |
|---|
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Type: | Bug → Feature Request |
|---|
comment:4 by , 16 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
as a solution can be done with a UDF using GetFinalPathNameByHandle windows API.
We don't plan to extend AutoIt builtin function.
follow-up: 6 comment:5 by , 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.
comment:6 by , 16 years ago
| Resolution: | Rejected |
|---|---|
| Status: | closed → reopened |
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 , 16 years ago
| Owner: | set to |
|---|---|
| Status: | reopened → assigned |
follow-up: 9 comment:8 by , 14 years ago
This is an Example of how to achieve this using native AutoIt code - http://www.autoitscript.com/forum/topic/134578-filenamebyhandle-find-a-filepath-using-the-handle-returned-by-fileopen/.
comment:9 by , 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 , 14 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | assigned → closed |
This really isn't necessary.

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