31 Jul 2009
Recently a number of my friends have hard hard drive failures and have asked me to retrieve data from their hard drives. I’ve been reasonably successful in each case recovering well over 95% of the data in each case - thanks not to me but the proliferation of free data recovery tools out there on the Internet.
Read More31 Jul 2009
In the past I’ve used FSUTIL to create large test files of data to process. Unfortunately you need administrator permissions to use this utility. I decided to write a command line utility (called “Make Test File” but abbreviated to MTF.EXE) to allow non-administrators to do the same. It’s written in VB.NET so it isn’t as quick as FSUTIL, but as they say “it does the job”, and it fulfilled my immediate needs.
Read More30 Jul 2009
I was scripting some Active Directory extracts today and I needed to check if a string of text contained two colons. I was checking if the detail on particular entries was to minutes or seconds; e.g. 13:25:33 vs. 13:25 . I couldn’t find a function to count occurrences within a string so I ended up writing my own….
Read More29 Jul 2009
I spend an inordinate amount of time at home sat on the sofa in front of my TV working on my laptop. I have a nice little media set-up consisting of a Mac Mini connected to my Sony Bravia TV which provides me with a nice little Internet connected multimedia option. Rather than watching TV all the time I frequently find that I want to listen to some music while I work and because I’m quite fickle with what I want to listen to at any time Spotify has proven to be a great little piece of software.
Read More23 Jul 2009
On Windows XP you may find that you need to carry out some tasks as an administrator for which you would logon as an administrator (local or network/domain). If the user is already logged on then you can choose to run as administrator for many activities by selecting run as from a file’s context menu. However not every type of file has this option.
Read More22 Jul 2009
There are lots of Twitter clients out there for smart phones, but you can also tweet from a ‘dumb’ phone. The trick is to use a service like TwitSay or TwitterFone. Once you register, these services give you a local telephone number to call. You can then record a short voice message.
Read More20 Jul 2009
National Rail Enquiries in the UK have cornered the market for iPhone apps for UK rail. It used to be open and there apparently used to be a pretty reasonable app out there for free. National Rail’s app on the other hand is not as nice and costs a few too many pennies for many people.
Read More20 Jul 2009
Power saving options on computers are something that I personally think are great. They not only help reduce carbon footprints, but they also help draw out even more life from your laptop battery. One of the main ways in which this is done (others being things such as disabling hardware) is by having an inactivity option that turns off the screen and the hard disk after a period of inactivity. Unfortunately there are times when this isn’t something you want. The primary example of this is when you are giving a presentation.
Read More19 Jul 2009
I’ve seen a few variations over the years on how to create a progress bar and an update window in VBScript. I’ve taken many of the ideas and some of my own to create what I hope is a flexible solution that not only allows you to display updates, reports, etc., but also a reasonable looking progress bar. If you want to skip ahead then the code is at the bottom of this post and includes an example, but for those of you who want to know a little more about how to use it or how it works I’ll explain some of the whys and wherefores.
Read More18 Jul 2009
Sometimes I need to create shortcuts with VBScript especially if the script is being installed and
a shortcut needs to be created to the script. The code to create a
shortcut is quite straight forward, but the CreateShortcut()
function
presented here pulls everything together into a single reusable form.
Optional parameters that you don’t want to use can be filled by the use
of NULL
and environment variables can be included in file paths to
make this as flexible as possible.