Thursday, March 22, 2012

Simple directory trees

Hi,

I'm trying to develop an image gallery that will have a few nice features. Basically, the photographer uploads images to a directory, the .Net code automatically creates : separate pages, thumbnails, watermarks the larger images and allows the user to navigate with the subdirectory tree.

eg. a folder called "Holidays" contains directories of "Saturday", "Sunday", "Monday". All four folders might contain images. Any one of the "days" might contain other subdirectories as well.

I've managed to write all the code for all the image management, but I can't figure out how to do the directories.

I'm pretty new to ASP.Net, so any help would be appreciated, even just a link to a site that can helphi cmcclellau,

try something like this..

Imports System.IO

Dim nd As New DirectoryInfo("c:\mypath\" & "new folder")
If nd.Exists = False Then
nd.Create()
End If

HTH

0 comments:

Post a Comment