According to the .NET 4.5 documentation the Path.GetInvalidPathChars method:

‘Gets an array containing the characters that are not allowed in path names.’

This is not quite true! The following is the complete list of characters that is contained in the resulting array:

Path.GetInvalidPathChars array conetents

As you can see there are a few missing. The first ones that come to mind are ‘:‘, ‘\‘, ‘/‘, ‘?‘ and ‘*’. While not directly to do with paths, file names also cannot contain ‘;‘.

When using the JavaScript function in IE8 you may receive the following error:

‘Object doesn’t support this property or method’

This is caused by the fact that’t added to the JavaScript specification until ECMAScript 5. If you look at the functions entry on MSDN you will find the following under the requirements section:

‘Not supported in installed versions earlier than Internet Explorer 9. However, it is supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards. Also supported in Windows Store apps.’

What this little gem means that even if you switch the document mode in IE9 onwards you wont hit this issue! The only way to test for this issue is to actually have IE8 installed.

Fortunately, there is a simple solution to this issue which I found on Ari Fuchs Tumblr. To fix the issue just add the following to the top of any javascript file that used the function: = || function() { return +new Date; };


Having been introduced to KDiff3 via using Kiln in my new job I have been increasing impressed by this Open Source program. KDiff3 provides intuitive file or directory comparison and merging capabilities. The image below (which I have shamelessly stolen from the project site) shows the program in use:

KDiff3 Screenshot

The KDiff3 project homepage looks really basic but don’t let this put you off.