How do you open a folder from vb to view its contents outside of a project?
i.e. C:\My Documents\New Folder
Thanks
Jim
Printable View
How do you open a folder from vb to view its contents outside of a project?
i.e. C:\My Documents\New Folder
Thanks
Jim
dosen't Shell excecute work?
Nope it doesn't!
Shell "C:\My Documents\NewFolder"
if it were NewFolder.exe ...then yeah it would work!
Use ShellExecute and the code
Dim lngret As Long
lngret = ShellExecute(Me.hwnd, vbNullString, _
"C:\My Documents\New Folder", vbNullString, "C:\", SW_SHOWNORMAL)
on your control
Eliza
Never heard of ShellExecute!
Just Shell
This works:
Reference "Microsoft Shell Controls and Automation"
Dim oFolder As Shell
Set oFolder = New Shell
oFolder.Open "C:\My Documents"
Thanks anyways