Results 1 to 2 of 2

Thread: Dir

  1. #1

    Thread Starter
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Dir

    Hey could anyone tell me how to do these few things.

    First.
    How to check if a dir exsist

    Second.
    How to Create a Dir

    Third.
    How to delete a dir.


    Thanks Alot

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    You can use the static methods of the Directory class, located within the System.IO namespace. You can also use the DirectoryInfo class, which deals with instances, rather than static methods.

    Code:
        Directory.Exists(sDir)
        Directory.CreateDirectory(sDir)
        Directory.Delete(sDir)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width