Category Archives: Windows 7

ASP.NET Web Server Here Context Option


You can download here the updated registry entry for opening the ASP.NET Development Web Server using context menu in Explorer. The path has been updated to use Visual Studio 2015’s development web server.

This is used to quickly open a web server in a directory. After merging the registry, just do the following:

  1. Open explorer and navigate to the target directory
  2. Right click and select the ASP.NET Web Server Here option

I have not tested this in Windows 10.


Windows 7 Task Scheduler does not run with “Run whether user is logged on or not” selected

I didn’t have this issue until I patched my installation with the latest updates.

You need to set the user to SYSTEM for your tasks, set privileges to highest, and then create the Desktop directory in the SYSTEM’s profile directory. The following directories need to be created:


Make sure the directories are created under the Administrator account. I also read this problem exists under Windows 2008 Server, but I have yet to encounter this issue in that environment.

Source (last 3 posts by BlackBeemer)

Backing up Firefox and Thunderbird with AutoIt and Mozbackup

I’ve found the easiest way to backup Firefox and Thunderbird is through the use of AutoIt scripts and Mozbackup. After installing the programs, do the following:

Add the mozbackup installation directory to your system Path variable. This is so mozbackup can run from the command line in any directory.

Create your mozbackup profile files. They may look similar to this:

output=X:\Alexs_Email_BAK\<application> <version> - <year>-<month>-<day>.pcv

Create your auto it scripts. They may look similar to this:

If ProcessExists("thunderbird.exe") Then ; Check if the thunderbird process is running.

Local $iPid = ProcessExists("thunderbird.exe")



if ProcessExists("thunderbird.exe") = False Then
    RunWait("mozbackup F:\Bakscripts\mozprofile\tbird.mozprofile")

Compile your autoit scripts into executables and add them to your task scheduler.

Creating a Short Clip from a Video File

After looking for information on ffmpeg and virtualdub, I found that making a clip from a longer video file cumbersome or in this case, unsupported. Virtualdub doesn’t support mp4 or h264 encoding.  VLC’s record feature is currently broken and unable to record clips.

After some searching, I found the program avidemux did the job quickly and easily. To create a clip, drag and drop the video file and then set the A and B points in the file that you want to extract into a separate video file. To create the clip, go to File -> Save.


OpenVPN and Windows – Connecting and Disconnecting from OpenVPN through command line or programmatically

I decided to automate a back up task that had been completed manually for quite some time. The process was initiated manually because the server is located on a network that could only be accessed via OpenVPN connection.

The first task was figure out how to initiate the connection via command line. After digging through some documentation, I found out that you can call the ‘openvpn.exe’ file from command line and pass it’s configuration  via  *.ovpn file and the ‘–config’ parameter. Shown here on Stackoverflow in C# code.

This lead to my next problem – disconnect from the client at the end of the operation. The OpenVPN client has a telnet server that can receive a disconnect command. It can be enabled by adding the ‘management’ parameter to the *.ovpn configuration file. For example, if you want to open the telnet server on port 7000, add the following line:

management localhost 7000

After enabling the server, you need to use a telnet client to connect to the OpenVPN client. Once connected to the VPN client, disconnecting from the VPN connection can be done via the telnet command: SIGHUP

The last problem is reinitializing the localhosts’s network interface. Because disconnecting from the VPN connection from telnet does not reinitialize your primary network interface, you need to set it manually via command line.  This can be done by sending the following command:

netsh interface ipv4 set address name="Local Area Connection" source=dhcp gateway=

You can find more details on this issue here in the section that references the ‘EnableLocalNet.bat’ file.

In the end, I ended up creating something similar to a Rube Goldberg Machine that used a combination of a .NET Console Application, BAT files, Unison, and AutoIt to get the backup operation working. The .NET console program was responsible for starting and disconnecting the OpenVPN connection and initiating Unison to transfer the files. AutoIt executed the console application and used a BAT file to re-initiate the local host’s network interface after disconnecting.

Source for programs is available upon request.