Deleting Files With Events

While working on the dotNetTips Dev Cleaner utility, I wanted to make the deletion of files even faster. While writing this utility I found and worked on speed issues, almost all relating to updating the user interface. So to decouple the deleting from the UI I decided to add a new feature to the dotNetTips.Utility [...]

Advertisements

Rock Your Microsoft .NET Coding Standards (2017)

I've released a brand new video of my conference session titled "Rock Your Microsoft .NET Coding Standards" on demand. This video has lots of new tips, tricks and guidance. To see this session, live and in person click here to check out my conference schedule. Rock Your Microsoft .NET Coding Standards from David McCarter on [...]

Check To See If Process Is Already Running

Do you need to see if a process is already running? It's pretty easy with the code below. I wrote this code for my console apps .NET back utility and .NET file cleaner utility. ''' <summary> ''' Check to see if the current app is already running. ''' </summary> ''' <returns><c>true</c> if app is not running, <c>false</c>.</returns> Public [...]

Compress Files

There are a number of ways to compress things in .NET, but I found out that only the code below works for files. I wrote the code below for my console apps .NET back utility. Imports System.IO.Compression ''' <summary> ''' Compresses the file. ''' </summary> ''' <param name="sourceFileName">Name of the source file.</param> ''' <param name="destinationFileName">Name of [...]

Improving Code Quality… One Developer At A Time Video Series

All of my conference sessions are designed to make the quality of software better. If you missed one of my sessions at a conference or you couldn't make it, you can still see my session(s) on video by going here. You can also get all of these sessions, slide decks and sample code by purchasing [...]