Jump to content
Sign in to follow this  
Katarosky

Get current active windows explorer address

Recommended Posts

Katarosky

What is the way to get current active windows explorer address.

Share this post


Link to post
Share on other sites
Skruge

Welcome to the forums.

This works in XP by reading the Address bar. (Could be different in another OS)

The bar always exists and doesn't need to be visible.

MsgBox(0, "Explorer Path", ControlGetText('[CLASS:ExploreWClass]','','Edit1'))

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites
Katarosky

Thanks... :)

When script bellow run

While 1
    MsgBox(0, "Explorer Path", ControlGetText('[CLASS:ExploreWClass]','','Edit1'))
    Sleep(2000)
WEnd

Then...

Posted Image

How to get adress "F:\Music"

Edited by Katarosky

Share this post


Link to post
Share on other sites
Katarosky

Windows XP: replace CLASS:ExploreWClass with CabinetWClass --->It worked. Thanks alot!

While 1
    MsgBox(0, "Explorer Path", ControlGetText('[CLASS:ExploreWClass]','','Edit1'))
    Sleep(2000)
WEnd

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  

×