473,396 Members | 1,923 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,396 software developers and data experts.

A question about My.Settings

Hi,

I notice that in the ConnectionString kept in the My.Settings has this,
|DataDirectory|

May I know how to change the value of |DataDirectory|? So far, it point to
the place where the executable file is run from.

Thanks in advance.
Jan 3 '06 #1
2 886
Hi,

DataDirectory is a string contaning the path to the data directory
on the local disk. So if the database is included in the setup project its
value will be the directory the app is installed in.

http://msdn2.microsoft.com/en-us/lib...directory.aspx
Ken
-----------------
"Programatix" <N$********************@msn.com> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
Hi,

I notice that in the ConnectionString kept in the My.Settings has this,
|DataDirectory|

May I know how to change the value of |DataDirectory|? So far, it point to
the place where the executable file is run from.

Thanks in advance.

Jan 3 '06 #2
So, how do we change the string in DataDirectory?

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi,

DataDirectory is a string contaning the path to the data directory
on the local disk. So if the database is included in the setup project
its value will be the directory the app is installed in.

http://msdn2.microsoft.com/en-us/lib...directory.aspx
Ken
-----------------
"Programatix" <N$********************@msn.com> wrote in message
news:ed**************@TK2MSFTNGP15.phx.gbl...
Hi,

I notice that in the ConnectionString kept in the My.Settings has this,
|DataDirectory|

May I know how to change the value of |DataDirectory|? So far, it point
to the place where the executable file is run from.

Thanks in advance.


Jan 4 '06 #3

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

Similar topics

0
by: davidw | last post by:
For a long time, I am looking for a way to setup a standard way XML inheritance for my project. I am sure the way I call it is not right, but I think what I need is reasonable. Basically, I want...
1
by: Nikhil Patel | last post by:
Hi all, What is the best way to allow the administrator of the application to select which columns are displayed in a Databound grid in an aspx form. I was thinking of creating a form and display...
3
by: Minh Khoa | last post by:
Please give me more information about delegate and its usage? Why do i use it and when?
16
by: LP | last post by:
Hello, I am trying to use .NET with Excel. I installed Office 2003 and selected ..NET programming suport option, so it installed all those PIA, as MS sugests. But I can not find a way to destroy...
22
by: KvS | last post by:
Hi all, to start with, excuse me, I'm still learning programming alltogether, probably I'm making some fundamental mistake here... I have the files settings.py, GUIclasses.py and main.py in...
8
by: Jamie | last post by:
Hello Newsgroup: This is my little rant about security and why we have home directories. You may choose to ignore it or disagree with it, that is your perogative and I won't care, but... this...
1
by: Rick | last post by:
Hi guys, i have a question about Settings.settings I have some datasets in my app, each dataset uses a connection (myCnn) created in Settings.settings if i use...
3
by: Franky | last post by:
I normally don't ask for help debugging but I've been looking at this for 4 days and am beginning to believe it may be caused by something I just don't know about. Below is a printout from a...
3
by: Joey | last post by:
Hello guys, I am currently working on a fairly complex asp.net project using C#, VS2005, and several third-party components. I have a question about how to remedy a problem with it and maybe...
2
by: Michel Perez | last post by:
Hi, am very newbie in Python, but as part of a project i need to load configuration -a settings.py file in the package dir- of my apps recursively, something like this: ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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...
0
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...
0
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,...

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.