473,473 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

design and compiled file paths


Using VB 2005 beta 2

1. If I have a connection string of "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=|DataDirectory|\Database\TAM.mdb;Persist Security Info=True", what
directory will this point to once the file is compiled and running on a
user's system?

2. What path will the following code point to?
strAppPath = Trim(Application.StartupPath & "\")
strAppPath.Trim()
Me.HelpProvider1.HelpNamespace = strAppPath & "Help\TAMS.chm"

I want my Database files, Help Files, and Report files to be in directories
under the install directory of the program when it is distributed.

Thanks,

Thomas

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Nov 21 '05 #1
2 977
<th*****@msala.net> wrote in message
news:43***********************@news.newsdemon.com. ..
1. If I have a connection string of "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=|DataDirectory|\Database\TAM.mdb;Persist Security Info=True",
what directory will this point to once the file is compiled and running
on a user's system?
Whatever you've /hard-coded/ in place of "|DataDirectory|".
2. What path will the following code point to?
strAppPath = Trim(Application.StartupPath & "\")
strAppPath.Trim()
Me.HelpProvider1.HelpNamespace = strAppPath & "Help\TAMS.chm"


Me.HelpProvider1.HelpNamespace _
= IO.Path.Combine( Application.StartupPath, "Help\TAMS.chm" )

will point to the "Help" directory below the "Start In" directory specified
on the shortcut that started the application.

IIRC,

Reflection.Assembly.GetEntryAssembly.Location

will get you the physical path where the executable resides.

HTH,
Phill W.
Nov 21 '05 #2

Thanks for the info.

I have not hard coded anything in place of "|DataDirectory|", this is what
VB coded when I created a connection to the database. I am just wondering
where it will point when the software is deployed???? The other answers
were very helpful.
On 4-Oct-2005, "Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote:
1. If I have a connection string of
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=|DataDirectory|\Database\TAM.mdb;Persist Security Info=True",
what directory will this point to once the file is compiled and running
on a user's system?


Whatever you've /hard-coded/ in place of "|DataDirectory|".


Thanks,
Thomas

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Nov 21 '05 #3

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

Similar topics

13
by: gaudetteje | last post by:
Hi All, I've been trying to come up with an elegant solution to this problem, but can't seem to think of anything better than my solution below. I have a Python program that needs to be...
3
by: Scott | last post by:
I have created my site in the root (www.mysite.com) and have recently added a directory called test (www.mysite.com/test/). The environment setup is: Server: Windows 2000 Server SP4 Development...
11
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
2
by: jm | last post by:
I am still migrating from old ASP to ASP.NET with VB.NET. I created an app as a single file type application and later found out about Visual Studio and code behind class files. Is that the...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
14
by: Imbaud Pierre | last post by:
The applications I write are made of, lets say, algorithms and data. I mean constant data, dicts, tables, etc: to keep algorithms simple, describe what is peculiar, data dependent, as data rather...
5
by: Eugene Anthony | last post by:
ds1.Tables.Rows.ItemArray.GetValue(0).ToString() contains the string path: images/5/Video1/qbert.flv if (File.Exists(ds1.Tables.Rows.ItemArray.GetValue(0).ToString())) { //code to execute } ...
2
by: bootzwiz | last post by:
Hi, I have a form where users can choose number of file uploads ( drop down ) and upload images. I need to store the path of images in database.I want to know what is the best way to store...
7
by: sudhaMurugesan | last post by:
Hi all, I use asp.net with c#. I upload a file and save in a directory. I want to reopen the file so i check for file exists and then open it. But though the file exists, the...
0
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,...
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
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...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
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...

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.