Sign in to follow this  
Followers 0
Guest rathore

Get Selected File's Path

1 post in this topic

#1 ·  Posted (edited)


I'm VERY SORRY! didn't mean to post it twice! (slow connection made the page lost at first) Please moderator, delete on of them .


Here's the situation:

I've an open folder in an explorer window. I want to get the complete path to the selected file (or folder) into a variable.

There's a way that works but is not cool at all!! Its like this:

- I turn on 'show path in title bar'

- Read folder from title bar.

- Send keys {F2, ctrl+c, enter} (copies file/folder name to clipboard)

- Then join the both.

Now I can't find a way to do it using some control functions (the elegant way!). Can anyone tell me if its possible using some better approach?



Edited by rathore

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0