Community discussion forum

How to create directories and subdirectories in (ASP.net 2.0, with c#.).

  • 1 year ago

    How to create directories and subdirectories in (ASP.net 2.0, with c#.).

  • 1 year ago

    System.IO.DirectoryInfo DirInfo= System.IO.Directory.CreateDirectory(@"d:\mainDirectory\SubDirectory");

    Make a note of it, both main and sub directories created in single statement.

  • 1 year ago

    One other thing that you might need to do is check that your aspnet user has sufficient NTFS write permissions in the location that you want to create the directories.

     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!