Tag: VBS
-
VBA/VBS check if printer is installed
Here is a quick code snippet to determine if a printer is installed on a Microsoft Windows system;
-
Photoshop VBScript to automatically resize images
Decided to learn Photoshop VBScripting, don’t know why I didn’t do this sooner, I now have scripts to automatically generate my blog thumbnails (as below), and add little Google Maps markers on them (see here). A few constants to change in the script (edit with Notepad); RESIZEWIDTH – thumbnail width RESIZEHEIGHT – thumbnail height IGNOREVERTICAL…
-
eventquery.vbs – ERROR: Unable to execute the query for the…
If you received this error when trying to execute eventquery.vbs the cause is an overflow of events past 32,767 (the maximum capacity of a VB6 Integer). There is a very simple fix for this which is to change the data type from an Integer to a Long (which has a maximum capacity of 2,147,483,647). In…
-
Rigid file manipulation functions for VBA/VBS
Ever since starting work I have been learning and using VBA/VBS to make life easier. I will start posting some of my generic functions as a source for others. They may not be written optimally, but they do work.