FixWins.com
  • Csharp
  • Contact Us









0 Coding examples: Directory File IO Csharp code examples
  • Find Files That Match a Wildcard Expression
  • Get the Total Free Space on a Drive
  • delete a directory
  • create a directory
  • check if a directory exists
  • Get Files from folder
  • Provides a file folder chooser dialog
  • Delete Directory Files
  • Directory.Delete does not delete individual files within the directory structure.
  • Safely copies file, creating all necessary directories and overwriting destination.
  • Is file Compressed
  • Get Files Recursive
  • Non Recursive Get Files
  • Directory Is Exists
  • Ensures that a directory exists, creating it if it doesn't.
  • Checks if the specified directory exists and create it if not present.
  • Clean Directory
  • Check Directory by path and extension
  • Copy Directory
  • Copies a directory.
  • Recursively copies a directory from one path to another, while creating any parent directories if they don't already exist.
  • Moves a directory from one path to another, while creating any parent directories if they don't already exist.
  • Recursive directory deletion that handles directories being opened in Windows Explorer. Source: http:stackoverflow.coma1703799
  • Recurse search a directory
  • List Directory by extension
  • Delete directory by pattern
  • Delete directory, if include the root
  • Creates a directory at the given path, if it's not existing
  • Creates a random directory structure to the specified depth, where each folder has a random name of the specified length with the available chars.
  • Get Directory Parallel
  • Copy Directory Recursive Internal
  • Is Same Directory
  • Remove first directory of path (if one exists). e.g. "maps\\my maps\\he.map" becomes "my maps\\he.map"
  • Clear Directory
  • Safely copies all content from one directory to another.
  • ReName Folder
  • Copy folder recursive
  • Ensure Folder Exists
  • Force Delete folder
  • Copy folder with pattern
  • Get Folder Size
  • Returns true when child Folder is a sub folder of parent Folder
  • Check if a folder is a direct sub folder of a main folder.
  • Get Folder To Open using FolderBrowserDialog
  • Create Directories
  • Create Dir
  • Delete Dir
  • Splits a path into all parts of its directories, e.g. "maps\\sub\\the" becomes {"maps\\sub\\the","maps\\sub","maps"}
  • Ensure Parent Exists
  • Calculates the best fragment size to be split.

Coding examples

0 Custom Type File IO
  • access level
  • Anonymous Types
  • AppDomain
  • as
  • Assembly
  • Attribute
  • Box Unbox
  • class
  • Constant
  • Constructor
  • delegate
  • dynamic type
  • Enum
  • Event
  • Exception
  • Extension Methods
  • Field
  • Finalizer
  • Generics
  • Indexer
  • Inheritance
  • Inner Type
  • interface
  • is
  • Lambda
  • Local Method
  • Method
  • Method Parameter
  • nameof
  • namespace
  • Object Initializer
  • Operator Overloading
  • overload
  • Partial
  • Polymorphism
  • Property
  • read only
  • static
  • struct
  • this
  • try catch finally
0 Data Structure Algorithm File IO
  • Factorial
  • Search
  • Stack
  • Tree
0 Database File IO
  • Connection
  • LINQ Query
  • ODBC
  • SQL Command
0 File IO File IO
  • Binary File
  • Directory
  • File
  • File Command
  • FileStream
  • GZip
  • Path
  • Permission
  • Serialization
  • String Reader Writer
0 Language Basics File IO
  • Array
  • boolean
  • char
  • Console
  • continue
  • Data Type Cast
  • Data Type Format
  • Date Time
  • decimal
  • default
  • do while
  • double
  • Float
  • for
  • for each
  • goto
  • if
  • int
  • Null Operator
  • Nullable
  • Number
  • Operator
  • Preprocessor
  • Random
  • ref
  • Regex
  • string
  • StringBuilder
  • switch
  • Tuple
  • Variable
  • while
0 LINQ File IO
  • Group By
  • IEnumerable
  • Projection
  • Query Array
  • Select
  • where
0 Network File IO
  • IP Address
  • Network Interface
  • URL
  • Web
0 Operating System File IO
  • Diagnostics
  • Environment
  • Process
  • Windows
0 Reflection File IO
  • Attribute
  • Member
0 Security File IO
  • Hash
  • MD5
  • Password
0 System File IO
  • Array Compare
  • Array Convert
  • Array Create
  • Array Dimension
  • Array Element
  • Array Element Add
  • Array Enumerate
  • Array Equal
  • Array Find
  • Array Index
  • Array Null Element
  • Array Operation
  • Array Search
  • Array Shift
  • Array Shuffle
  • Array Slice
  • Array Sort
  • Array Split
  • Array String
  • Attribute
  • Bit
  • Boolean
  • Byte
  • Byte Array
  • Char
  • Char Unicode
  • Converter
  • DateTime Calculate
  • DateTime Compare
  • DateTime Convert
  • DateTime Day
  • DateTime Diff
  • DateTime Format
  • DateTime Hour
  • DateTime Local
  • DateTime Minute
  • DateTime Month
  • DateTime Parse
  • DateTime Quarter
  • DateTime Second
  • DateTime Time
  • DateTime Timestamp
  • DateTime Timezone
  • DateTime Unix
  • DateTime UTC
  • DateTime Week
  • DateTime Year
  • DateTimeOffset
  • Decimal
  • Double
  • Enum
  • Exception
  • Hash
  • Hex
  • IComparable
  • Int32
  • Int64
  • Math Convert
  • Math Easing Function
  • Math Geometry
  • Math Number
  • Math Statistics
  • Math Vector
  • Nullable
  • Object
  • Random
  • String Algorithm
  • String ASCII
  • String Base
  • String Base32
  • String Base64
  • String Case
  • String Contain
  • String Convert
  • String Encode Decode
  • String Endian
  • String Escape
  • String Format
  • String HTML
  • String Join
  • String Match
  • String New Line
  • String Number
  • String Padding
  • String Parse
  • String Quote
  • String Repeat
  • String Replace
  • String Reverse
  • String Search
  • String Shorten
  • String Split
  • String Start End
  • String Strip
  • String SubString
  • TimeSpan
  • Tuple
  • Type
0 System.Collections File IO
  • ICollection
  • IDictionary
  • IEnumerable
0 System.Collections.Generic File IO
  • ICollection
  • IDictionary
  • IEnumerable
  • IList
  • ISet
  • List
0 System.Data File IO
  • DataTable
0 System.Drawing File IO
  • Color
  • Color Brightness
  • Color Calculation
  • Color Convert
  • Color HSV
  • Color RGB
  • Graphics
  • Image Convert
  • Image Effect
  • Image Operation
  • Image Size
  • JPEG
0 System.Drawing.Imaging File IO
  • Bitmap
0 System.Globalization File IO
  • Chinese
  • English
0 System.IO File IO
  • BinaryWriter
  • CSV File
  • DirectoryInfo
  • File Copy
  • File Name
  • File Path
  • File Size
  • File Time
  • FileStream
  • Hex
  • MemoryStream
  • Stream
  • StreamWriter
0 System.Net File IO
  • IP Address
0 System.Reflection File IO
  • Attribute
  • Constructor
  • ConstructorInfo
  • Enum
  • FieldInfo
  • Interface
  • Member
  • MethodInfo
  • Modifier
  • PropertyInfo
0 System.Security.Cryptography File IO
  • ASN
  • Certificate
  • CRC
  • DES
  • Encrypt Decrypt
  • Hash
  • HMACMD5
  • MD5
  • Password
  • SHA1
0 System.Text.RegularExpressions File IO
  • Match Number
  • Match String
0 System.Windows.Forms File IO
  • Dialog
0 System.Windows.Media.Imaging File IO
  • BitmapSource
0 System.Xml File IO
  • XML Attribute
  • XML Child
  • XML DataSet
  • XML Document
  • XML Element
  • XML File
  • XML Format
  • XML Namespace
  • XML Node
  • XML Reader
  • XML Schema
  • XML Serialization
  • XML String
  • XML Writer
0 Thread Asynchronous File IO
  • Mutex
  • Parallel
  • Producer Consumer
  • Synchronize
0 XML File IO
  • XML Document
  • XML LINQ
  • XML Serialization