¡@

Home 

c# Programming Glossary: rootfolderpath

C#: How to logon to a share when using DirectoryInfo

http://stackoverflow.com/questions/1232120/c-how-to-logon-to-a-share-when-using-directoryinfo

List FileInfo GetFileList string fileSearchPattern string rootFolderPath DirectoryInfo rootDir new DirectoryInfo rootFolderPath List.. rootFolderPath DirectoryInfo rootDir new DirectoryInfo rootFolderPath List DirectoryInfo dirList new List DirectoryInfo rootDir.GetDirectories..

C# - Delete files from directory if filename contains a certain word

http://stackoverflow.com/questions/1620366/c-sharp-delete-files-from-directory-if-filename-contains-a-certain-word

this question To expand on Henk's answer you need string rootFolderPath @ C SomeFolder AnotherFolder FolderCOntainingThingsToDelete.. filenames string fileList System.IO.Directory.GetFiles rootFolderPath filesToDelete foreach string file in fileList System.Diagnostics.Debug.WriteLine.. this it is also a very good idea to refuse to run if the rootFolderPath is less than about 4 characters long a simple protection against..

Is there a faster way than this to find all the files in a directory and all sub directories?

http://stackoverflow.com/questions/2106877/is-there-a-faster-way-than-this-to-find-all-the-files-in-a-directory-and-all-sub

private void GetFileList string fileSearchPattern string rootFolderPath List FileInfo files DirectoryInfo di new DirectoryInfo rootFolderPath.. List FileInfo files DirectoryInfo di new DirectoryInfo rootFolderPath FileInfo fiArr di.GetFiles fileSearchPattern SearchOption.TopDirectoryOnly.. List FileInfo GetFileList string fileSearchPattern string rootFolderPath DirectoryInfo rootDir new DirectoryInfo rootFolderPath List..