HeSaidJoe had a few extra lines in his code to make sure if the app is in the root folder, it wouldn't return "C:\\" instead of "C:\"
It's safer that way.