• 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.
0
dastaub
Asked:
dastaub
1 Solution
 
CodeCruiserCommented:
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?

http://msdn.microsoft.com/en-us/library/c1sez4sc.aspx

http://www.codeproject.com/KB/cpp/VbNetExpTree.aspx
0
 
dastaubAuthor Commented:
How do you plan to present the folder structure? Using a tree?  = ListBox

0

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