the example you have given xploiter, the error checking, is infact a bad idea since you do not know if firefox is installed in that location. The way ryu had it would be a better solution since it doesn\'t matter where you\'ve installed windows or any of the other applications. So it would probably be better to have a small error when not installed than not being able to run it at all. Of course it can be done error-less but I\'d like to say inside the scope of the snippet.