Added: Aug 19, 2002
Snippet uploaded by: snippet
Written By: Randy Birch
Demo: Sorry, no demo
Open Folder / Explorer Using API
Highlight all by clicking in box
' From a UseNet posting by Randy Birch
Dim sExeName As String
Dim sPath As String
Dim hWndDesk As Long
sPath = "/e,/n,c:program files"
sExeName = "explorer.exe"
hWndDesk = GetDesktopWindow()
Call ShellExecute(hWndDesk, "Open", sExeName, sPath, 0&, SW_SHOWNORMAL)
' /e opens the window in Explore mode,
' /n forces a new window (instead of reusing if that's the user's preference).
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.