473,803 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Correct" place to stopre data files?

I've been somewhat confused about what the "proper" place is to store
data files (like file based databases) for my applications.

With all the different "special" folders available, which is the correct
one for databases that get updated every time a user runs the
application? I need to make sure that Windows 98 users can use my
software as well, but I also need make sure that the data file is always
accessible at a consistent location in my software.

Any tips appreciated!

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #1
13 1575
Mitchel,

Although not correct is the application.sta rtuppath as well not a bad place.
We see it Microsoft do with Visual Studio Net.

I hope this helps,

Cor
Nov 21 '05 #2
"Mitchell Vincent" <mv******@newsg roup.nospam> schrieb:
You should be able to write to the Application.Use rAppDataPath folder
safely.


Is that accessible to "all users"? I always install my software so that
any user on the system can access it.


Use
'Environment.Ge tFolderPath(Env ironment.Specia lFolder.CommonA pplicationData) '
instead.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
You should be able to write to the Application.Use rAppDataPath folder
safely.

"Mitchell Vincent" <mv******@newsg roup.nospam> wrote in message
news:eS******** *****@TK2MSFTNG P10.phx.gbl...
I've been somewhat confused about what the "proper" place is to store data
files (like file based databases) for my applications.

With all the different "special" folders available, which is the correct
one for databases that get updated every time a user runs the application?
I need to make sure that Windows 98 users can use my software as well, but
I also need make sure that the data file is always accessible at a
consistent location in my software.

Any tips appreciated!

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com

Nov 21 '05 #4
Marina wrote:
You should be able to write to the Application.Use rAppDataPath folder
safely.


Is that accessible to "all users"? I always install my software so that
any user on the system can access it.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #5
Yes, this will be stored in each users's data directory. Try it out and run
some quick test to see if it meets your needs.

"Mitchell Vincent" <mv******@newsg roup.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Marina wrote:
You should be able to write to the Application.Use rAppDataPath folder
safely.


Is that accessible to "all users"? I always install my software so that
any user on the system can access it.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com

Nov 21 '05 #6
Herfried K. Wagner [MVP] wrote:
Use
'Environment.Ge tFolderPath(Env ironment.Specia lFolder.CommonA pplicationData) '
instead.


I assume it works with Windows 98, but where is the actual directory on
a 98 box? I don't have one to test, or I would.

Thanks!

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #7
Mitchel,

Although not correct is the application.sta rtuppath as well not a bad place.
We see it Microsoft do with Visual Studio Net.

I hope this helps,

Cor
Nov 21 '05 #8
Cor Ligthert [MVP] wrote:
Mitchel,

Although not correct is the application.sta rtuppath as well not a bad place.
We see it Microsoft do with Visual Studio Net.

I hope this helps,

Cor


That's what I do now, but I was thinking that in some multi-user setups
the user might not be able to write to the Program Files directory, so
all the writes to the database *could* fail in theory.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #9
"Mitchell Vincent" <mv******@newsg roup.nospam> schrieb:
You should be able to write to the Application.Use rAppDataPath folder
safely.


Is that accessible to "all users"? I always install my software so that
any user on the system can access it.


Use
'Environment.Ge tFolderPath(Env ironment.Specia lFolder.CommonA pplicationData) '
instead.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #10

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

Similar topics

2
7911
by: CLEAR-RCIC | last post by:
Hello All, I wrote a .dll that programatically maps two network drives and copies files from one drive to the other. The .dll works fine when using an .exe to call the .dll. When I call the .dll with a Windows Service I get the following error - "The specified network password is not correct". This makes no sense as both the .exe and the Windows Service are both run from my machine. I also specify my domain account/password in the...
5
2939
by: Alf P. Steinbach | last post by:
Thanks to a new version of OpenOffice that produces acceptable (although not yet perfect) PDF, and numerous requests for PDF format, I've now made chapter 2.1 available in PDF format -- e.g., use Acrobat Reader: <url: http://home.no.net/dubjai/win32cpptut/html/w32cpptut_02.html> I've also changed the numbering format for this chapter. Hopefully this is better?
53
4606
by: Alf P. Steinbach | last post by:
So, I got the itch to write something more... I apologize for not doing more on the attempted "Correct C++ Tutorial" earlier, but there were reasons. This is an UNFINISHED and RAW document, and at the end there is even pure mindstorming text left in, but already I think it can be very useful. <url: http://home.no.net/dubjai/win32cpptut/special/pointers/preview/pointers_01__alpha.doc.pdf>.
3
304
by: Mitchell Vincent | last post by:
I've been somewhat confused about what the "proper" place is to store data files (like file based databases) for my applications. With all the different "special" folders available, which is the correct one for databases that get updated every time a user runs the application? I need to make sure that Windows 98 users can use my software as well, but I also need make sure that the data file is always accessible at a consistent location...
50
6086
by: Shadow Lynx | last post by:
Consider this simple HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 STRICT//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Strict kills my widths!</title> </head> <body> <table style="width:400px; table-layout:fixed;">
4
1479
by: metaperl | last post by:
I work at a place which is currently running SQL 2000, but they are planning to migrate to 2k5. I was thinking that this is the perfect opportunity to fix all the weaknesses we have had in our data model for the longest: primary keys and foreign keys with different names, use of character columns for boolean fields, use of integer columns for toggles, no referential integrity, etc. So, even if I create my Utopian perfect data model and...
4
2492
by: chaitu | last post by:
Hi guys, I've written a parallel build program (in Perl) that takes a pre-computed dependency tree of many projects in 2 visual studio .net 2003 solution (.sln) files here at my company, and builds projects at a same level of dependency parallelly. While doing this, sometimes I get "Microsoft Visual Studio experienced some errors and needs to close" pop-up (which was gone after I disabled error-reporting for programs from Control...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9566
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10555
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9127
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.