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

Path.GetFullPath syntax

I'm trying to access a directory above our default site directory:

D:\wwwroot\website.com\dbeh\db.mdb

Our website is thus:

D:\wwwroot\website.com\www\website\pages\page.aspx

Someones suggested using in the connection string (data source = )
path.getfullpath(appdomain.currentdomain.basedirec tory)

Could someone please help me with the syntax as I am not fluent in c#
syntax.
cheers
Jul 21 '05 #1
0 1053

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

Similar topics

5
by: Hugh McLaughlin | last post by:
Hello Everyone and thanks for your help in advance. I am working on an application that uses as helper class to determine if an image file exists. If the file exists, the path to the image is...
1
by: Wayne Wengert | last post by:
I have a web site hosted on a standard commercial ISP. My main web pages are stored in a "www" directory. Under the www directory I have a folder "net" defined as a virtual directory for my .NET...
3
by: Mark Urish | last post by:
I want to make sure that a filename is an "absolute path" (ie. has a drive spec. and root, or else is a UNC path) if it isn't already one. Path.GetFullPath seems to do the trick, except there is...
4
by: Tim | last post by:
Hello, i try to write some data into an XML-file via c#. When I specify the path like "c:\\temp\\test.xml" the XmlTextWrite could open the file. But when I tried to get the path from...
2
by: Seth | last post by:
Ok, here is my setup. I have a fully functioning HTTP Handler implemented. The handler is supposed to handle every single request that comes in to a particular virtual directory. Thus, in IIS, I...
0
by: John Smith | last post by:
I'm trying to access a directory above our default site directory: D:\wwwroot\website.com\dbeh\db.mdb Our website is thus: D:\wwwroot\website.com\www\website\pages\page.aspx Someones...
1
by: Thomas | last post by:
Hi, I have written a simple web application in asp.net 1.1.4322. following is the code written in Page_Load private void Page_Load(object sender, System.EventArgs e) { string str =...
5
by: Martin Carpella | last post by:
Hi! I know, that Path-names should be shorter than MAX_PATH (250), but the Win32-SDK allows specifiying longer names using the "\\?\" prefix. As I have an application that accesses files...
0
by: Rory Parore | last post by:
The documentation says that Path.IsPathRooted(path) returns true if path is an absolute directory, otherwise false. However, if I pass in "C:" it returns true, but this is treated as a relative...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...
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,...

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.