finding absolute path on target machine

D

David

Hi,

Would someone please mind showing me how to obtain the absolute
path to a folder that is created under the application folder at install
time.

ie. On my development machine the path is
C:\engineering\development\software\BMSLITE\bin\Database

On the target machine it may be c:\program files\orbit\bmslite\database

I tried the system.forms.application.startup path but this seemed to
continue to point to the development path on the target machine.

Thanks in advance




--

Kind Regards

David Huisman
General Manager
-----------------------------------------------------------------------
ORBIT COMMUNICATIONS Pty Ltd - Wireless Solutions that Work
(Telemetry, Control, Monitoring, Security, HVAC ...)
A.C.N. 107 441 869


Website : http://www.orbitcoms.com
PO Box 4474 Lakehaven
NSW 2263, AUSTRALIA
Phone: 61-2-4393-3627
Fax : 61-2-4393-3685
Mobile: 61-413-715-986
 
D

David

Apologies,
I was a bit lazy, after a bit of research I found the answer.

filepath = System.Environment.CurrentDirectory & "\database\bmssql.mdf"

Thanks

Hi,

Would someone please mind showing me how to obtain the absolute
path to a folder that is created under the application folder at install
time.

ie. On my development machine the path is
C:\engineering\development\software\BMSLITE\bin\Database

On the target machine it may be c:\program files\orbit\bmslite\database

I tried the system.forms.application.startup path but this seemed to
continue to point to the development path on the target machine.

Thanks in advance

--

Kind Regards

David Huisman
General Manager
-----------------------------------------------------------------------
ORBIT COMMUNICATIONS Pty Ltd - Wireless Solutions that Work
(Telemetry, Control, Monitoring, Security, HVAC ...)
A.C.N. 107 441 869


Website : http://www.orbitcoms.com
PO Box 4474 Lakehaven
NSW 2263, AUSTRALIA
Phone: 61-2-4393-3627
Fax : 61-2-4393-3685
Mobile: 61-413-715-986
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top