Monthly Archives: September 2005

Searching Active Directory (VBScript)

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 … Continue reading

Posted in Scripting | 1 Comment

Using ADO & PHP to query a CSV file

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. Continue reading

Posted in Scripting | 2 Comments

Screenshot active window

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. Continue reading

Posted in General | Leave a comment

Learning Windows Scripting.. pff

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. Continue reading

Posted in Scripting | 3 Comments

Directory size monitoring with VBScript

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. Continue reading

Posted in Scripting | 1 Comment

Large BLOB to MSSQL database

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. Continue reading

Posted in Scripting | 2 Comments