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
Printable View
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
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)