【发布时间】:2008-11-09 02:54:34
【问题描述】:
物理文件在哪里?
【问题讨论】:
-
我认为这取决于您使用的技术。 WinRT 应用、Silverlight 应用等的位置不同。还取决于操作系统、Roming 配置文件等。
标签: .net isolatedstorage
物理文件在哪里?
【问题讨论】:
标签: .net isolatedstorage
这取决于操作系统以及是否启用了漫游用户配置文件。
例如,在 XP 上,使用非漫游配置文件,位置是
<SYSTEMDRIVE>\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\IsolatedStorage
在带有漫游配置文件存储的 Vista 上,
<SYSTEMDRIVE>\Users\<user>\AppData\Roaming\Microsoft\IsolatedStorage
请查看Introduction to Isolated Storage 了解更多信息。
【讨论】:
%userprofile%\AppData\LocalLow\Microsoft\Silverlight\is
%LocalAppData%\IsolatedStorage/%AppData%\IsolatedStorage.
我没有在“Microsoft”下找到它们
【讨论】:
System.Diagnostics.Process.Start(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) +
"\\IsolatedStorage"
);
【讨论】:
在我的 XP 工作站上,我在 c:\Documents and Settings\\Local Settings\Application Data\Microsoft\Silverlight\is\XXXXXXXXXXXXX 下找到了它 其中 xxxxxxxx 似乎是一个随机目录名称。 (在此之下,如果您四处闲逛,您应该会找到适合您特定应用的商店...)
【讨论】:
我也在 %ProgramData%\IsolatedStorage 下看到过它(通常是 C:\ProgramData\IsolatedStorage)。
这个特殊案例是一个带有 IIS 站点相关数据的 Windows Server 2008。
【讨论】:
我使用的是 Windows 8.1。在我的电脑上C:\Users\mangesh\AppData\LocalLow\Microsoft\Silverlight\<followed by some random folder names>
在“Silverlight”文件夹中有很多随机文件夹。您应该可以在这些文件夹之一中找到您的文件。
【讨论】:
位置因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。
【讨论】:
当被系统账户访问/创建时,我在这里找到了文件夹:
C:\Windows\SysWOW64\config\systemprofile\AppData\Local\IsolatedStorage
【讨论】: