One day I was working on my project for class day, coding in R, I attempted to open the data file (.dta) in notepad a txt file However, I didn’t notice the default always check box I thought it would be an easy fix. How hard could it be to default the file back to a nothingness state? However, there was no click of a button. I had to edit the registry keys to restore the file to its original state.

It made me think about the people who have less technical skills. Unless you know what you are doing, messing around with the keys can be a dangerous game. This is why I wanted to create a solution for the common joe.

My program is supposed to default the state of the file or program back to its original state no problem, just a click of a button. My idea is when the file is opened you have an option to both click to default and go back.

However, I have very limited knowledge of how to do this myself, and it took a lot of research. The best steps to make this happen was too:

  1. Create a blank file with the
  2. Set the default program to none for the file extension 3.Copy the file to the temporary file path
  3. Remove the association for the file extension 5.Delete the temporary file
  4. Restart the computer, and download the file again
  5. Back to normal!

I ran into a lot technical knowledge problems, as a solution like this hasn't been created before, having to glue bits together. Overall, this project works for .dta files as of current, set it back to its default, however, other file types have yet to be explored.

Built With

  • powerscript
Share this project:

Updates