PDA

Click to See Complete Forum and Search --> : make directory into a menu


bbosh
Jun 12th, 2001, 02:21 PM
does anyone have code to convert a specifided folder tree w/ files into a menu? I'm talking about something similar to IE's favorites in concept.

Megatron
Jun 12th, 2001, 03:26 PM
sFile = Dir$("C:\*.*")

Do Until sFile = ""
DoEvents
I = mnuItem.Count
Load mnuItem(I)
mnuItem(I).Caption = sFile
mnuItem(I).Visible = True
sFile = Dir
Loop

bbosh
Jun 12th, 2001, 10:41 PM
thanks.

any way to accommodate folders?

Megatron
Jun 13th, 2001, 03:40 PM
Try Dir$("C:\*.*", vbDirectory)