How to check if a Folder exists in Computer desktop from C#? -
 I need to check weather: A folder is in the desktop computer with C #   I have a folder   But before that I have to check whether the folder exists or not. How to check with C # Help me fulfill this task.    Thanks in advance.       I think you are looking for     < pre>  C: \\ User \\ MyComputer \ \ Desktop \\ Test . If I do not exist then I have to add a folder  test   test    
 string desktoppath = environment. GatefolderPath (environment specialfolder.desktop directory) is the code to make; System.IO.Directory.CreateDirectory (desktoppath + "\\ test");    
 if (! directory.exist (path.cobine (desktoppath, "test")) {// directory does not exist}    
 
Comments
Post a Comment