I want to save my Files in a more generic way than on Desktop.
So i want to create my own Subfolder in Programs Folder, which i can use to save my stuff.
But i get "System.UnauthorizedAccessException" if i try to create a File using File.AppendAllText(@"C:\Program Files\MySubfolder\MyFile.txt,someString);
I even disabled the Protection of the Folders manually. My App is not yet compiled so i cant run it as administrator, can i? How does every Program use this Folder but i cant? Do i need to compile my App everytime i make a small change and want to test it?
I would really apreciate Help since im stuck with that multiple hours now