This is a quick script I’ve used to add and remove service entries to the windows services file. It ignores commented lines (lines starting with a hash (#)), and it also doesn’t validate the format of the host or port/protocol … Continue reading →
This is a quick script I’ve used to add and remove hosts entries to the windows hosts file. It ignores commented lines (lines starting with a hash (#)), and it also doesn’t validate the format of the host or IP … Continue reading →
Sometimes I need to search for a file inside a merge module (MSM). Since I don’t know which specific merge module I’m looking for, I wrote this script to iterate through every merge module in a specific folder to find … Continue reading →
Sometimes after installing a setup.exe with limited command line switches, we may want to clean up the Windows start menu. Usually as part of our Application Packaging best practises we remove ‘Uninstall’ shortcuts, ‘Update’ shortcuts, and shortcuts to readme’s and … Continue reading →
Dim objShell : Set objShell = CreateObject(“WScript.Shell”) Dim userProfileFolder : userProfileFolder = objShell.ExpandEnvironmentStrings(“%USERPROFILE%”) Dim desktopFolder : desktopFolder = userProfileFolder & “\Desktop” Dim programFilesFolder : programFilesFolder = objShell.ExpandEnvironmentStrings(“%ProgramFiles%”) Dim shortcutName : shortcutName = “Alkane Test” Dim shortcutDescription : shortcutDescription = “Alkane … Continue reading →
Description: Useful when we want to wait for a process to complete until we continue execution of a script. Source: NA Script: This script waits until notepad.exe and iexplore.exe are no longer running: dim svc : set svc=getobject(“winmgmts:root\cimv2”) dim sQuery : … Continue reading →
I’ve been working on more toolsets recently, and we needed a way to populate multiple dropdown lists in a HTA file, and make them cascade. Cascading is basically where the results in the second dropdown list are dictated by the … Continue reading →
We use a Sharepoint list to track various information. The toolsets that we create should ideally read from these lists, so that every team member shares the same information and can see real-time data. To do this, we used VBScript … Continue reading →