"正确"停止数据文件的地方? [英] "Correct" place to stopre data files?

查看:80
本文介绍了"正确"停止数据文件的地方?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对适当的内容感到有些困惑。地方是为我的应用程序存储

数据文件(如基于文件的数据库)。


所有不同的特殊文件夹可用,这是正确的

一个数据库,每次用户运行

应用程序时更新?我需要确保Windows 98用户也可以使用我的

软件,但我还需要确保数据文件总是可以在一致的位置访问

我的软件。


任何提示赞赏!


-

- Mitchell Vincent

- KBilling - 发票变得简单!

- http:// www.k-billing.com

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

推荐答案

Mitchel,


虽然不正确但是application.startuppath也不错。

我们看到微软用Visual Studio Net做的。


我希望这会有所帮助,


Cor
Mitchel,

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

I hope this helps,

Cor


" Mitchell Vincent" < MV ****** @ newsgroup.nospam> schrieb:
"Mitchell Vincent" <mv******@newsgroup.nospam> schrieb:
你应该能够安全地写入Application.UserAppDataPath文件夹。
You should be able to write to the Application.UserAppDataPath folder
safely.



是吗可以访问所有用户?我总是安装我的软件,以便系统上的任何用户都可以访问它。



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




使用

''Environment.GetFolderPath (Environment.SpecialFold er.CommonApplicationData)''

代替。


-

MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://classicvb.org/petition/>



Use
''Environment.GetFolderPath(Environment.SpecialFold er.CommonApplicationData)''
instead.

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


您应该能够安全地写入Application.UserAppDataPath文件夹




米切尔文森特 < MV ****** @ newsgroup.nospam>在消息中写道

新闻:eS ************* @ TK2MSFTNGP10.phx.gbl ...
You should be able to write to the Application.UserAppDataPath folder
safely.

"Mitchell Vincent" <mv******@newsgroup.nospam> wrote in message
news:eS*************@TK2MSFTNGP10.phx.gbl...
我有点儿混淆了什么是适当的 place是为我的应用程序存储数据文件(如基于文件的数据库)。

具有所有不同的特殊数据。文件夹可用,这是正确的数据库,每次用户运行应用程序时都会更新?
我需要确保Windows 98用户也可以使用我的软件,但
我还需要确保数据文件始终可以在我的软件中的一致位置访问。

任何提示赞赏!

-
- Mitchell Vincent
- KBilling - 发票变得简单!
- http:/ /www.k-billing.com
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



这篇关于&QUOT;正确&QUOT;停止数据文件的地方?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆