I'm looking at this problem on the side of my usual workload and would appreciate any pointers with it.
I want to be able to point my application at a directory (network or local) and then generate a Menu from the file structure found. For instance if I was to point the application at a local folder (for instance C:\Steve') the program would then search this folder (and subfolders) constructing a Menu (for the form) with links to all the '.txt' files (or '.doc' files maybe). That is I would get a menu item for each subfolder found in the top level folder, and off each of these further menu items (in the form of a submenu) and so on, with final links to the text files (admiteddly these may lie in the top level folder).
Can anyone suggest a way I may start to look at this, constructing the Menu dynamically according to the folder structure (subfolders within folders, etc) with final options off these menus such that they can be clicked and 'NotePad' started with these files opened for review/editing.
Any help would be appreciated.
Thanks in advance
Steve
I want to be able to point my application at a directory (network or local) and then generate a Menu from the file structure found. For instance if I was to point the application at a local folder (for instance C:\Steve') the program would then search this folder (and subfolders) constructing a Menu (for the form) with links to all the '.txt' files (or '.doc' files maybe). That is I would get a menu item for each subfolder found in the top level folder, and off each of these further menu items (in the form of a submenu) and so on, with final links to the text files (admiteddly these may lie in the top level folder).
Can anyone suggest a way I may start to look at this, constructing the Menu dynamically according to the folder structure (subfolders within folders, etc) with final options off these menus such that they can be clicked and 'NotePad' started with these files opened for review/editing.
Any help would be appreciated.
Thanks in advance
Steve