• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

Visual Studio 2008 - retrive directory structure

I have to print PDF files to a Hard Drive not a printer.  The end user will select where the PDF file will be saved and it will print to that directory whenever it is printed.  The top directory will be SavedPrintJobs and from there a supervisor  is free to add / rename directory names.  This directory will be on the server not their individual PC.
Is there a way for me to retrive the directory structure beginning with the directory SavedPrintJobs and get the current structure below that directory?  This retrieved directory structure will be what is shown to the end user so they can select where to save the file.
The directory path will be saved and used each time the report is printed.   This directory path will be saved with the report in order for it not to have to be selected each time the report is sent to disc.
1 Solution
You can begin by IO.Directory.GetDirectories(path) which will return you a list of strings with directory paths. How do you plan to present the folder structure? Using a tree?


dastaubAuthor Commented:
How do you plan to present the folder structure? Using a tree?  = ListBox


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now