473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Alternatives to Application.LocalUserAppDataPath

Hi all, I would like to find a standard place to put application data,
but I don't want the pathname to include the application's version.

Any suggestions?

Thanks,
Novice

Jul 31 '06 #1
2 6424
Why not use isolated storage and encapsulate access into its own assembly?
Then you would be using the version of the assembly used to acces isolated
storage.

This would allow you to re-release versions of the application without the
isolated storage changing providing that you didn't change anything to do
with the isolated storage. When you did change something with the isolated
storage that changed the way you stored data you would probably want to
migrate the data anyways (so up the version number of the assembly
encapsulating it).

Beyond that you can always create your own directory.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung
<il***********@gmail.comwrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...
Hi all, I would like to find a standard place to put application data,
but I don't want the pathname to include the application's version.

Any suggestions?

Thanks,
Novice

Jul 31 '06 #2
Actually for my purposes I want all versions of the the application to
be able to find and use the same file.

I've resolved this, by simply getting the parent directory that I get
from
Application.LocalUserAppDataPath

Thus removing the version information.

Thanks for your suggestion though - I had forgotten entirely about the
isolated storage feature of .NET.

Novice

Greg Young wrote:
Why not use isolated storage and encapsulate access into its own assembly?
Then you would be using the version of the assembly used to acces isolated
storage.

This would allow you to re-release versions of the application without the
isolated storage changing providing that you didn't change anything to do
with the isolated storage. When you did change something with the isolated
storage that changed the way you stored data you would probably want to
migrate the data anyways (so up the version number of the assembly
encapsulating it).

Beyond that you can always create your own directory.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung
<il***********@gmail.comwrote in message
news:11*********************@75g2000cwc.googlegrou ps.com...
Hi all, I would like to find a standard place to put application data,
but I don't want the pathname to include the application's version.

Any suggestions?

Thanks,
Novice
Aug 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Miles Davenport | last post by:
I would like some advice on what Java server-side alternatives their are to an applet which is a shopping cart application which allows the user to drag-and-drop individual items into "an order"...
3
by: Dan Christensen | last post by:
I have written a small application in VB6 -- a kind of special purpose text editor. There seem to be many annoying glitches in VB's rich text box control, however. Performance on larger files has...
2
by: Guadala Harry | last post by:
The current implementation (that works) retrieves data from a SS2K db via stored procedure that returns 40-60 rows and 6 columns (one string and five int columns), and places that result set into a...
1
by: John Lee | last post by:
Hi, I do not know where is the best place to post this type of question - everytime in this case I always choose this group because I think we have a lots of genius here in this group -...
1
by: Charles Rumbold | last post by:
We have a .Net web form application using a SqlServer database. Part of the app is/will be a background process that wakes up every so often to do some things (say every 5 minutes to process a...
1
by: Cristian | last post by:
Hi I have some trouble (on only one developer computer) with the application settings functions... I have posted to the Microsoft.Public.vstudio.setup group but they couldn't help me and asked...
4
by: Eduard Witteveen | last post by:
Hello, I want to store (database-)data on my local machine. Traditionally would choose to use a ms-access database to store my information. -> Is the choosing ms-access a good idea? (do i need...
0
by: steve | last post by:
I am using vb.net 2005 Express Edition. Application Settings would be a very useful thing, as a global program database that persists; if only it would work! Does anyone know a hack or a...
1
by: Spencer | last post by:
Our Mainframe DBA insists that the IDTHTOIN parameter be set to 600 so that all idle threads timeout after 10 minutes. This is causing a particular packaged application that expects to hold idle...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.