Open folder.

trojanz
07-04-2005, 10:26 PM
Hi! Does anyone know how to open a specified folder via VB6? Let's say I have a command button and I want to open "C:\Documents and Settings" folder by clicking on the command button without a dialog box, is it possible? It's sorta like browse folder. Please help...

jjStinger72
07-04-2005, 10:38 PM
i'll make the assumption that you mean open the folder in a windows explorer motif....


Option Explicit

Private Sub Command1_Click()
Shell "explorer C:\Documents and Settings"
End Sub


should work nicely. otherwise, im not sure what "open a folder in vb" means

trojanz
07-04-2005, 11:22 PM
i'll make the assumption that you mean open the folder in a windows explorer motif....


Option Explicit

Private Sub Command1_Click()
Shell "explorer C:\Documents and Settings"
End Sub


should work nicely. otherwise, im not sure what "open a folder in vb" means

Yes, this is what I need!!! Thanks for the help!!!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum