.NET“隔离存储”存储在哪里?

时间:2008-11-09 02:54:35

标签: .net isolatedstorage

物理文件在哪里?

7 个答案:

答案 0 :(得分:31)

这取决于操作系统以及是否启用了漫游用户配置文件。

例如,在XP上,使用非漫游配置文件时,位置为

<SYSTEMDRIVE>\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\IsolatedStorage 

在具有漫游配置文件存储的Vista上,

<SYSTEMDRIVE>\Users\<user>\AppData\Roaming\Microsoft\IsolatedStorage

有关详细信息,请参阅Introduction to Isolated Storage

答案 1 :(得分:16)

%LocalAppData%\IsolatedStorage / %AppData%\IsolatedStorage.

我没有在“微软”下找到它们

答案 2 :(得分:8)

System.Diagnostics.Process.Start(
    Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + 
    "\\IsolatedStorage"
    );

答案 3 :(得分:4)

在我的XP工作站上,我发现它位于c:\ Documents and Settings \\ Local Settings \ Application Data \ Microsoft \ Silverlight \ is \ XXXXXXXXXXXXX 其中xxxxxxxx似乎是随机目录名称。 (如果你四处游荡,你应该找到适合你特定应用的商店......)

答案 4 :(得分:3)

我也在%ProgramData%\IsolatedStorage下见过它(通常是C:\ ProgramData \ IsolatedStorage)。

此特例是带有IIS站点相关数据的Windows Server 2008。

答案 5 :(得分:3)

我正在使用Windows 8.1。在我的电脑上,它位于C:\Users\mangesh\AppData\LocalLow\Microsoft\Silverlight\<followed by some random folder names>

在'Silverlight'文件夹中有许多随机文件夹。您应该在其中一个文件夹中找到您的文件。

答案 6 :(得分:1)

位置因IsolationStorage范围

而异
Local user     [LocalApplicationData]\IsolatedStorage
Roaming user   [ApplicationData]\IsolatedStorage
Machine        [CommonApplicationData]\IsolatedStorage

可以通过Environment.GetFolderPath方法检索文件夹。

Windows 2016就像这样

Local user     C:\Users\<user>\AppData\Local\IsolatedStorage
Roaming user   C:\Users\<user>\AppData\Roaming\IsolatedStorage
Machine        C:\ProgramData\IsolatedStorage

可以找到更多详细信息here

相关问题