473,834 Members | 2,063 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 1583
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
7912
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
2941
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
4609
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
6092
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
1480
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
9799
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
9646
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
10512
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...
1
10550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10220
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
6957
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();...
0
5627
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3083
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.