how to get the current windows explorer path?

jayawant

Member
Joined
Apr 25, 2011
Messages
21
Programming Experience
1-3
hi All,

how to get the current windows explorer path in vb.net windows application?.

Thanks,
 
There can be many explorers showing different paths, maybe you mean this: My.Computer.FileSystem.CurrentDirectory Property
Windows Explorer paths are also available though, see post 2 here: http://www.vbdotnetforums.com/vb-net-general-discussion/10678-how-detect-if-file-manager-open.html
Path there is .LocationURL, here's a quick code addition sample to work with that:
            Dim u As New Uri(ies.LocationURL)
            If u.IsFile Then
                Debug.WriteLine(u.LocalPath)
            End If
 
Back
Top