Get File Path And File Name
-
- Posts: 125
- Joined: 06 May 2016, 16:28
Get File Path And File Name
when I select some file in a windows folder, I use some keys (^!+d) and I'd like it to store in clipboard the file path and file name ex: C:\photo.jpg. How can I do that?
Re: Get File Path And File Name
This works for me:
I'm not seeing the advantage of pressing all those keys instead of just ^c, though.
Code: Select all
^!+d::^c
-
- Posts: 125
- Joined: 06 May 2016, 16:28
Re: Get File Path And File Name
but I want to get the file path from the address bar like C:\Desktop\file.txt
Re: Get File Path And File Name
I think that @boiler's reply is still what you are trying to do.
Try it this other way
(selecting the file and then pressing the keys)
Try it this other way
Code: Select all
^!+d::
{
A_Clipboard := ""
Send "^c"
ClipWait
MsgBox A_Clipboard
}
Re: Get File Path And File Name
Yes, sometimes just ^c gets me the path, and sometimes it doesn't work at all, then I need to do what safetycar did.