What开发者_如何学JAVA is the syntax for setting multiple file-extensions as searchPattern on Directory.GetFiles()? For example filtering out files with .aspx and .ascx extensions.
Assume my path is \"c:/myapp/mainfolder/\" there are three folder included in the main folder. BTW, It doesn\'t need to identify separate files under mainfolder.
I am writing an application that updates some drivers. However the drivers are \"in use\" and can\'t be deleted unless I restart my computer.
I trying to modify permissions programmatically using a C# windows service that is running under an administrator\'s account inwindows XP.
I\'m trying to create a remote directory, and then write a file to it. Every great once in a while, the application fails with a System.IO.DirectoryNotFoundException while trying to write the file.