Unable to modify .ini file in c:\windows directory

前端 未结 3 1390
故里飘歌
故里飘歌 2021-01-20 18:04

I\'m writing a C# Windows application to update a .ini file for a legacy application. I don\'t have the source for the legacy application, so I cannot modify it.

The

3条回答
  •  伪装坚强ぢ
    2021-01-20 18:50

    This started with Vista to increase security. If an app tries to write to a location that is protected (like ini files written to the app's folder under ProgramFiles, or to the Windows folder, the app's reads and writes to that file are redirected to a folder in C:\Users{username}\AppData\Local\VirtualStore\

提交回复
热议问题