Code Scrap: Testing for Domain presence on Windows
I’ve been making a support utility that monitors if message queues and database tables are being read from and written to as part of the day to day activities in […]
I’ve been making a support utility that monitors if message queues and database tables are being read from and written to as part of the day to day activities in […]
This code scrap illustrates how you can have a Batch File create a deployment zip, transfer the zip to a target server, and then unzip at the other end. Zipping […]
This is a quick code scrap to illustrate how to identify duplicate field values in record sets in MySQL. The code may also work for other SQL languages, but do […]
Having the date and time available to you during a TeamCity build is very useful – but this information isn’t always available by default to TeamCity. Here is a Windows […]
Visual Studio has offered a neat feature for transforming config files for Web Applications for years – that’s where you have a default web.config file, and then a web.<something>.config for […]
MySQL has a really useful command called SHOW TABLES. It lists you all the tables available in the connected database. Unfortunately Microsoft SQL Server doesn’t have such a useful shorthand […]
Here’s a quick tip for running a C#.NET or VB.NET Windows Service in debug mode inside Visual Studio. First – modify the Main() in your C# or VB project to […]
Here’s a quick Windows Powershell script to delete all files in a folder that are older than a certain number of days. # Delete all Files in <directory> older than […]
I got an unusual error in Visual Studio the other day that I hadn’t encountered before. The error was relating to an issue doing App.Config Transformations on a C# Windows […]
This extends upon my previous code scrap for listing all files in Windows. If you want to produce a list of just a certain type of files in a directory […]