Reputation: 263
Is there a way to change location of IsolatedStorage files? I am using .NET 3.5sp1 and I write my application in C#
I would like to change its location to D:\TempDir
.
Upvotes: 4
Views: 1037
Reputation: 965
No, but you change the Isolated store, to different the predefined locations by supplying the parameter called IsolatedStorageScope when accessing the store:
C#
IsolatedStorageFile.GetStore(IsolatedStorageScope.User)
User scope: %LOCALAPPDATA%\IsolatedStorage
User Roaming scope: %APPDATA%\IsolatedStorage
Machine scope: %PROGRAMDATA%\IsolatedStorage\
More info or documentation or older windows
Upvotes: 0
Reputation: 34509
I don't believe it is no. I think it's operating system + user dependent on the exact location your files end up.
If you could start sticking files anywhere, it wouldn't be very isolated and would kinda defeat the point of having application local storage.
Upvotes: 3