Register file extension

For one project I needed to create an association between files and programs. It does not matter, if it’s some new extension like .myextension or you want to override the opening .mp3 for your program. It is clear that you do not want to mystify users by running unfamiliar and specific applications to open computer file in a specific way, or run the reg file. Everything should be done programmatically, as desired, or to offer to reassign him to open the files by default with your program.

Thus, the aim – to register programmatically on any extension of your program.

Continue reading

ObjBin Cleaner Service

For a long time I have wanted to do a program that on a regular basis would check the folder  with the projects  and delete from there autogenic folders of  type obj and bin, extra everything, generate ReSharper and folders TestResults. For some, this may not be a problem, but if there is enough in the development of several large projects it becomes a problem, all this may take up to 2 gigs, for example, as I have. Can you imagine even imagine a situation where on one machine running a lot of people, each with its own folder with the project and after the session there is no clean up these folders. Once again, here are cleaning working stations, we found that in these locations was 60+ gigs! Thus, the usefulness of utility, which would all have daily been removed – is obvious.

For this purpose, I decided to use the Windows Service. Some people say that’s easier to write .bat file, but I do not own this magic and did not want to mess about, Windows Service seemed more attractive prospect in terms of new knowledge.

Continue reading