Read Command-Line Arguments in C#
Read command-line arguments in a C# console app through args or Environment.GetCommandLineArgs, parse simple options, and pass arguments with dotnet run.
Read command-line arguments in a C# console app through args or Environment.GetCommandLineArgs, parse simple options, and pass arguments with dotnet run.
Compare two dates in C# with operators or DateTime.Compare, ignore the time of day, measure the difference, and avoid the time zone trap.
Compute an MD5 hash of a string or file in C# with MD5.HashData and Convert.ToHexString, and learn when MD5 is the wrong choice.
Empty the Windows Recycle Bin from C# with the SHEmptyRecycleBin API, with or without the confirmation dialog, for all drives or a single one.
Eject and close the CD or DVD drive tray from C# with the mciSendString Windows API, including how to target a specific drive letter.