Home > Net > C # files in the operating system folder
C # files in the operating system folder
Time:09-22
I am operating c: \ Windows \ system32 folder file encountered the following problem: I use A program in the folder to generate A binary file file1. Then I use A program to modify the file1. B B shown in the program modification is successful, but found in the program A file1 value or the value of the original program A and B have been requireAdministrator permissions, could you tell me how to deal with this, I want to use the program changes the value of the file1 B
CodePudding user response:
Is likely to trigger system file protection mechanism WFP https://support.microsoft.com/en-us/help/222193/description-of-the-windows-file-protection-feature
CodePudding user response:
File1 in program modified B, B use Flush: no, before the application A obtain file1 values, stream objects have shut down? The value of the procedure to obtain A of the file1 try to use the new new file stream object, rather than using the original one