¡@

Home 

c# Programming Glossary: directoryinfo

c# and excel automation - ending the running instance

http://stackoverflow.com/questions/1041266/c-sharp-and-excel-automation-ending-the-running-instance

wSheet.Cells iRowCount 12 data value .ToString iRowCount DirectoryInfo saveTo Directory.CreateDirectory excelTemplatePath _report.FolderGuid.ToString..

C# find most recent file in dir

http://stackoverflow.com/questions/1179970/c-sharp-find-most-recent-file-in-dir

how about something like this... var directory new DirectoryInfo C MyDirectory var myFile from f in directory.GetFiles orderby..

Nested using statements in C#

http://stackoverflow.com/questions/1329739/nested-using-statements-in-c-sharp

before alot of error checking and validation came up with DirectoryInfo di new DirectoryInfo Environment.CurrentDirectory TestArea FileInfo.. checking and validation came up with DirectoryInfo di new DirectoryInfo Environment.CurrentDirectory TestArea FileInfo files di.GetFiles..

Determining if a folder is shared in .NET

http://stackoverflow.com/questions/136539/determining-if-a-folder-is-shared-in-net

to determine if a folder is shared or not Neither Diretory DirectoryInfo or FileAttributes seem to have any corresponding field. One..

How can I compare (directory) paths in C#?

http://stackoverflow.com/questions/2281531/how-can-i-compare-directory-paths-in-c

can I compare directory paths in C# If I have two DirectoryInfo objects how can I compare them for semantic equality For example.. Or if you want to start with DirectoryInfo String.Compare dirinfo1.FullName.TrimEnd ' ' dirinfo2.FullName.TrimEnd..

Method Overloading. Can you overuse it?

http://stackoverflow.com/questions/248222/method-overloading-can-you-overuse-it

filePath void DeleteFile FileInfo file void DeleteFile DirectoryInfo directory string fileName However for your examples I'd use..

GetFiles with multiple extentions [duplicate]

http://stackoverflow.com/questions/3527203/getfiles-with-multiple-extentions

static IEnumerable FileInfo GetFilesByExtensions this DirectoryInfo dir params string extensions if extensions null throw new ArgumentNullException.. static IEnumerable FileInfo GetFilesByExtensions this DirectoryInfo dir params string extensions if extensions null throw new ArgumentNullException..

How do I execute a large SQL script (with GO commands) from c#?

http://stackoverflow.com/questions/40814/how-do-i-execute-a-large-sql-script-with-go-commands-from-c

Info True Initial Catalog Northwind Data Source local DirectoryInfo di new DirectoryInfo scriptDirectory FileInfo rgFiles di.GetFiles.. Catalog Northwind Data Source local DirectoryInfo di new DirectoryInfo scriptDirectory FileInfo rgFiles di.GetFiles .sql foreach FileInfo..

How do I convert Word files to PDF programmatically?

http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically

Get list of Word files in specified directory DirectoryInfo dirInfo new DirectoryInfo @ server folder FileInfo wordFiles.. files in specified directory DirectoryInfo dirInfo new DirectoryInfo @ server folder FileInfo wordFiles dirInfo.GetFiles .doc word.Visible..

populate treeview from list of file paths in wpf

http://stackoverflow.com/questions/6415037/populate-treeview-from-list-of-file-paths-in-wpf

string path var items new List Item var dirInfo new DirectoryInfo path foreach var directory in dirInfo.GetDirectories var item..

Is there a faster way to scan through a directory recursively in .NET?

http://stackoverflow.com/questions/724148/is-there-a-faster-way-to-scan-through-a-directory-recursively-in-net

string path var info new List Info var dirInfo new DirectoryInfo path foreach var dir in dirInfo.GetDirectories info.Add new..

using ITextSharp to extract and update links in an existing PDF

http://stackoverflow.com/questions/8140339/using-itextsharp-to-extract-and-update-links-in-an-existing-pdf

and then update the incorrect ones. string path c html DirectoryInfo rootFolder new DirectoryInfo path foreach DirectoryInfo di in.. ones. string path c html DirectoryInfo rootFolder new DirectoryInfo path foreach DirectoryInfo di in rootFolder.GetDirectories get.. DirectoryInfo rootFolder new DirectoryInfo path foreach DirectoryInfo di in rootFolder.GetDirectories get pdf foreach FileInfo pdf..