Archive for September, 2005

Searching Active Directory (VBScript)

Friday, September 30th, 2005

If, like me, you have been left irritated by the search function in Active Directory Users and Computers simply not telling you WHERE a particular user or computer actually is, simply use this bit of code. It allows you to search through AD for users or computers and returns a list of what it finds […]

Using ADO & PHP to query a CSV file

Sunday, September 18th, 2005

Using ADO and PHP to connect to a comma separated values (.csv) file to extract information using SQL queries and see the output as an HTML table.

Screenshot active window

Wednesday, September 14th, 2005

Use ALT+PRTSCRN to get a screenshot of only the active window. Meaning you don’t have to cut out the surrounding chaff with your favourite image editing application.

Learning Windows Scripting.. pff

Tuesday, September 13th, 2005

When one is learning from a book, does one expect the code that one is learning from to be not just incorrect but non-existant too? I think not.

Directory size monitoring with VBScript

Friday, September 9th, 2005

Need to monitor the size of a folder but don’t want to invest in some crappy software for the purpose? Use VBScript to email you when it exceeds a certain size.

Large BLOB to MSSQL database

Friday, September 9th, 2005

While trying to maintain security restrictions for a new system I’m developing to deliver data to our customers I came up with the following chunks of code to insert data in 256k chunks into a Microsoft SQL Server database.