Fix open file and add AsAdmin option