Category Archives: Software

Information related to software

Windows Special Folders

March 18, 2024

Windows uses an enumeration of special folder names to make it easier to find commonly used folders. Without this mechanism, we’d have to jump through a lot more hoops to determine this information since it is user dependent. I was trying to use a special folder as the root of a path for some common files shared by… Read More »

PowerShell Commands

August 21, 2024

File Search Related Operations Microsoft help on items in this section. Find Processes Get-Process (alias gps) allows you to get all running processes on your machine. It can also be used to create a filtered list. Find all processes with name that matches “mmc”. We are looking for an exact match so don’t need double quotes. All of… Read More »

Create Select Order on Server

February 12, 2024

The code below demonstrates how to create an order on a Select Server. The primary difference between clients and servers is that clients are created by a login process that provides a user and profile. Servers do not have profiles by default. Any order created by a Server will show up as created by “System”. I must make… Read More »

Use CancellationToken to Make Responsive Thread.Sleep() Wait

January 30, 2024

Using a time delay based on a Thread.Sleep() is truly easy. However, if you need a pause inside code that is using a CancellationToken, be aware that if the CancellationTokenSource calls the Cancel() method, Thread.Sleep() will ignore the request. CancellationToken Aware Sleep() In the example below, we get the WaitHandle from the token and pass in delay time… Read More »

SoftPro Select IAttachment Cheat Sheet

August 8, 2023

SoftPro order can have documents attached to the folder in any collection of folders you find useful. This page will be a collection of ways to interact with attachment files, folders, and items with IronPython. This is a frequent ask so the Automation Snippets can perform logic in this area. Typical Imports including LINQ Imports These are the… Read More »

Shrink DB Files to Reclaim Disk Space

July 26, 2023

While working on a project that uses WCF to connect to an endpoint that checks SQL for my credentials, I suddenly started receiving errors from SQL Server in the Event Log reporting: The transaction log for database ‘…’ is full due to ‘LOG_BACKUP’. Then the app was stuck with the message whenever I (attempted to) start it. After… Read More »

Stop Debug Messages from Disrupting Unit Tests

June 8, 2023

When writing code, I frequently add Debug checks to alert me that an incorrect assumption has been made. During development (debug build code), I want to know I haven’t handled a case. During production (release build code), I don’t want to interrupt the user experience. This means that for an unhandled case, the method should be written to… Read More »