3

每当我这样做Properties.Settings.Save()时,它都会提交属性更改,Application.LocalUserAppDataPath但我希望路径是Application.CommonAppDataPath

在哪里

Application.CommonAppDataPath = 
C:\Documents and Settings\**All Users**\Application Data\xxxxx\xxxx\1.0.0.0


Application.LocalUserAppDataPath =
C:\Documents and Settings\**gsankar**\Local Settings\Application Data\xxxxx\xxxx\1.0.0.0

请让我知道是否可以更改。如果是这样,请告诉我如何?

4

1 回答 1

1

Properties.Settings.Default.ParentPath = Application.CommonAppDataPath;调用前使用Properties.Settings.Save();

于 2009-07-27T13:15:09.987 回答