Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Folders / Directories 1

Status
Not open for further replies.

Ovatvvon

Programmer
Feb 1, 2001
1,514
US
In classic ASP, it was done by using the File System Object. How can I create a folder / directory in ASP.NET?

The most I've found so far was somthing having to do with Directory.CreateDirectory, but it's not clear on how to make it work. -Ovatvvon :-Q
 
The namespace where all your file operations are is:

System.IO

If you want to create a directory, then:

Imports System.IO

~~~~~
Directory.CreateDirectory("c:\myDirectory")


Here's a link to the help on your computer for more info on that namespace. You will love this about .NET. File operations are a breeeeeeeeeeze.

ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemIO.htm

:)
paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top