Rob van der Woude's Scripting Pages

News Archives 2013 Q1

 

[ Back to the current news page... ]

 

March 25, 2013 • A spin-off of my current project: Shortcut.vbs creates, modifies or deletes shortcuts, in the Start Menu Programs or on the Desktop.
March 22, 2013 • A bug in Software.hta's install date filter has been fixed.
March 21, 2013 Software.hta has been updated: the HTML/CSS code was modified to make it work in Internet Explorer 10, and while working on it, I also sorted the output by name.

PMSleep.bat, a demo batch file using PING to generate time delays, has been updated: it now takes into account IPv4 as well as IPv6.
March 14, 2013 Holidays.hta has been updated: the HTML/CSS code was modified to make it work in Internet Explorer 10, and while working on it, I also added Saint Patrick's Day.
February 28, 2013 UpdateCheck.vbs has been updated, File Locator Pro was added to UpdateCheck.ini.

Note: So far, the script has been updated with each new program added to the INI file.
The reason for that is that I chose programs that need different "detection methods" (e.g. HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER in the registry, path with or without executable, fixed file location, etcetera), in order to expand the script's possibilities.
After a while, modifications to the script will no longer be required, and I'll only update the INI file.
February 26, 2013 • A bug has been fixed in DatePart.cmd: in some years (e.g. 2013) it would subtract 1 from the calculated week of year number, where it should have added 1.
February 25, 2013 UpdateCheck.vbs has been updated, Bullzip PDF Printer was added to UpdateCheck.ini.
February 24, 2013 • A bug in UpdateCheck.vbs has been fixed (it would break on multiple consecutive zeroes in version numbers, e.g. 3.0.0.6001).
The bug was found after adding Secunia's Personal Software Inspector to UpdateCheck.ini.
February 19, 2013 • UpdateVBSEdit.vbs and UpdateVueScan.vbs were both broken with one of their recent website updates.
Instead of having to rewrite the VBScript code each time a website is modified, I decided to use a more generic approach: UpdateCheck.vbs can be used for many different programs, by writing the program specific URLs and RegEx patterns in a separate INI file UpdateCheck.ini.
So far, the INI file contains the data for Digital Photo Professional (rendering UpdateDPP.vbs obsolete) and VueScan (replacing UpdateVueScan.vbs).
I have not yet found a reliable way to replace UpdateVBSEdit.vbs.
February 18, 2013 UpdateDPP.vbs is a new script (based on UpdateVBSEdit.vbs) that checks if a new version of Canon's Digital Photo Professional (DPP, raw photo editing software) is available, and if so, offers to download it.
Unlike similar scripts, this one does not check the latest available version on the manufacturer's site, but on WikiPedia's Digital Photo Professional page.
February 13, 2013 CaptureDate.exe is a command line utility, written in C#, to return a specified photograph's capture date and time.
It does so by searching for date/time strings in the first 1024 bytes of the file, and returning the earliest one as capture time.
I used FINDSTR and STRINGS before, but with images getting bigger and bigger with each new camera, I figured I could save lots of time reading only the first 1024 bytes of each file – which contain all the information I need.
February 11, 2013 Yesterday.bat was broken on February 8.
In retrospect, I wonder why I never noticed before, because it would have failed on any 8th or 9th day and month. The source of the problem were the leading zeroes for days and month: in NT batch files, numbers starting with a 0 are interpreted as octal, and in octal there are no numbers 8 and 9, rendering 08 and 09 invalid.
The bug has been fixed in the latest version.
January 11, 2013 • After 11 years Hardware.vbs needed an update: the WMI class Win32_LogicalMemoryConfiguration no longer exists, the update uses Win32_MemoryDevice instead.
January 10, 2013 • New WMIC commands to logoff or poweroff a computer have been added to my Shutdown page.

• For a while I assumed NBTSTAT was no longer available in Windows 7, as it returned an error message on my computer: 'NBTSTAT' is not recognized as an internal or external command, operable program or batch file.
Oscar Nelin corrected me on this wrong assumption (never assume anything!).
It turned out that the error is caused by using a shortcut to a 32-bit command processor on my 64-bit system, which cannot launch 64-bit programs (i.e. NBTSTAT).
More details can be found here.

Thanks Oscar

 

Archived news from 2013 Archived News pages
Archived news from 2012
Archived news from 2011
Archived news from 2010
Archived news from 2009
Archived news from 2008
Archived news from 2007

 


page last uploaded: 2015-08-24, 21:13