On this page I'll report on changes to my web site or related news items.
Don't expect a full-blown weblog, more like a list of highlights in shorthand.
For a file based list of changes look at the What's New list.
• Henry Nettles reported a bug (and proposed the solution) in DropDownBox.exe
: the checks for duplicate arguments that I had modified at the last minute were causing error messages when using one of the /R* switches.
• A minor update to GetHDDStatusGUI.ps1
: when started, it will hide the console, and when finished it will restore the console (but minimized).
is a new script demonstrating the use of Windows Forms in PowerShell.
It was built with the help of the PoshGUI form editor
Of course, for login dialogs in PowerShell, you wouldn't want to create your own form, rather use PowerShell's built-in
cmdlet, demonstrated in LoginDialog.ps1
• Darin Schnetzler found a reliable
way to use complex one-liners in batch files, e.g. run several commands, and jump to error handling code at the first failure:
(command1) && (command2) && (command3) || (ECHO Error)
This is explaned on my Conditional Execution
• Another update for Shell32Icons.exe
: besides the small icon in its title bar and the large icon in its main window, the new version also shows the selected icon in the System Tray (a.k.a. Notification Area).
• Another update for GetHDDStatus.ps1
: in Linux the desktop notification was unpredictable at best, because the
command cannot send notifications to other users, whereas the script requires root access to check the disks.
The solution is to start the new version without
root acces; the script will restart itself with root access, and create a temporary shell script with the
command; the temporary script will then be run by the original non-root script.
, a tool to view and select available icons in shell32.dll, had a major update: besides the small icon in its title bar, it now also displays the large icon in its window.
had a major update: not only will it show the disk status in the console, but as a system tray message/desktop notification as well.
• The previous release of DialogBoxes.dll
proved to be less final than I had expected...
Wolfgang Struensee found a lot of errors, especially in the sample code provided by the DLL itself.
So a new almost final beta release is available, version 0.18.
Each dialog now has a
method, to provide a demo in VBScript.
I used this for testing this latest release, the test script
is included in the download.
function now also accepts an optional integer argument (0 for false, 1 for true) to provide the help text in HTML format instead of plain text, i.e.
Help( 1 )
to get help text in HTML.
, a script to convert a binary file to VBScript that can recreate that binary file, had a major update.
Whereas the first version would read a binary file 1 byte at a time, and then update the "recreation script" for 1 byte at a time, the new version reads 1024 byte before updating the script for these 1024 bytes all at once.
It may well be possible to process larger chunks, but VBScript has a line length limit, and I would rather keep on the safe side.
The larger chunks make the creation of the "recreation script" much
faster, the main effect on the "recreation script" itself is not speed but size: about 70% size reduction compared to the old version!
And as an added bonus, the new "recreation scripts" also restore the file's timestamp.
• The final not so final
beta version of DialogBoxes.dll
has been released.
All dialogs are available as COM-visible classes, with additional "wrapper" functions for those who prefer a "classic command line approach".
Each dialog has its own
method, with a brief description and a list of properties and methods, plus VBScript sample demo code.
The common methods
can be accessed from any of the DialogBoxes objects.
• The latest version of DialogBoxes.dll
includes ColorSelectBox and SystemTrayMessage.
• To correctly show the VBScript generated help for DialogBoxes.dll
in its web page, I wrote UTF8removeBOM.exe
, which removes the BOM
from a UTF-8 encoded text file.
• The DialogBoxes DLL for COM scripting
now has its own project page
The planned fourth beta has become an alpha version:
I started rewriting the code for each dialog, steering away from the "classic" command line approach, as used in VBScript's native
Instead, the new version uses a "class approach", where you can set properties by name (or not set them if the default property value is acceptable).
After registering the DLL with the accompanying
you can get extensive help, including sample scripts, using the following VBScript code:
Set objDateTimeBox = CreateObject( "RobvanderWoude.DateTimeBox" )
WScript.Echo objDateTimeBox.Help( )
Set objDateTimeBox = Nothing
Set objDropDownBox = CreateObject( "RobvanderWoude.DropDownBox" )
WScript.Echo objDropDownBox.Help( )
Set objDropDownBox = Nothing
Set objFontSelectBox = CreateObject( "RobvanderWoude.FontSelectBox" )
WScript.Echo objFontSelectBox.Help( )
Set objFontSelectBox = Nothing
Set objPrinterSelectBox = CreateObject( "RobvanderWoude.PrinterSelectBox" )
WScript.Echo objPrinterSelectBox.Help( )
Set objPrinterSelectBox = Nothing
has been updated: today I finally understood the purpose of the "scriptsonly" property, and modified the help text accordingly.
• The third beta of DialogBoxes DLL for COM scripting
has been added, input validation has been improved,
function gives even more details, and
has been added to display available mask options for
• The second beta of DialogBoxes DLL for COM scripting
has been added too.
function gives more details about each dialog's arguments and returned strings and the DLL's helper commands.
• Happy New Year!
May all your happy dreams come true!
(Picture, by yours truly: Grey heron and Cumberland slider side by side in the Botanic Garden of Zaandam, Netherlands, this Christmas)
page last uploaded: 2019-03-23, 17:45