Compare Two Files in VB6

This is a demo program for usage of the AreTheyTheSame function that was described in the Compare Two Files in VB6 post. Attachments File Uploaded Size 389-20170603-120221-CompareTwoFiles.zip 6/3/2017 12:02:21 PM 2570

Test File Builder

This is just a short program for building test files. The files contain random characters, and are useful for testing things such as transfer speeds, compression ratios, attachment size limits in email, and other things that can use files of varying sizes. For new coders, this small, one-form program demonstrates: Attachments File Uploaded Size 389-20170603-093919-tfb10.zip 6/3/2017 9:39:19 AM… Read More »

Start the screensaver from code in VB6

Nothing magical here. Just using the Windows API to start the screensaver on demand from code in Windows. Let’s say you have a, err, questionable, process running a computer. Hey, I don’t judge. I like a good game of solitaire at work, too. Let us also pretend that your boss is not so keen on having you playing… Read More »

Use VB6 to ping a remote computer

When your application makes connections to remote computers, it is usually a good idea to check to see if the remote machine is up and responding prior to attempting a connection to it. Pinging a machine is one way to do it. Visual Basic 6 doesn’t have a built in method to perform an ICMP echo request (ie,… Read More »

Dumping from a Database, Revisited

Some time ago, a user named VB6Boy posted a handy little VBScript that dumps out records from a database table to a series of text files. The method works fine, but takes an exorbitant amount of time for large datasets. Can we do better? Another user commented on the post mentioned above, stating that he (or she) was using the script as… Read More »

Joining Files with PowerShell

As a server administrator, one of my duties is to review log files for anomolous behavior, errors, or other issues. For me, combining all the daily logs into one big file is much easier to review.

PSMetrics Part 4: Basic Metrics Display in ASP

Welcome to the final piece of the puzzle: displaying our metrics. We now have a pile of bits in our database, and now it needs to be displayed in a meaningful way. As you may recall from the previous parts of this series, we first built a PowerShell script which gathers information from the local machine. Using the… Read More »

Creating an Event Log with PowerShell

Programmatically creating an new Windows Event Viewer log can be quite useful during automated processes. While some folks know how this is done, others might needs some guidance. Here’s how to do it with PowerShell.