Category Archives: Scripting

PHP, Batch, VBScript, JavaScript etc.

List installed programs (VBScript)

This bit of VBScript will allow you to return a list of applications installed (as seen by Add/Remove Programs). The function returns a simple Array. Continue reading

Posted in Scripting | Comments Off

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

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

ETN.fm trance track as an image

Using a template image as your signature, use PHP and GD2 to render the currently playing track onto your forum signature. Continue reading

Posted in Music, Scripting | 2 Comments

PHP Upload

A PHP upload script that uses MD5 passwords, sessions, passwords and layers Continue reading

Posted in Scripting | Leave a comment