Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to get file without providing a full path?

Hi All,
I am trying to retrieve a file from my application. It works when I give a full path to retrieve the doc file, but it doesn't work when I gave part of the path to retrieve the file.
Can anyone help please?
Kero
[251 byte] By [kero] at [2007-11-11 6:33:51]
# 1 Re: How to get file without providing a full path?
Where is your file located?
jackassfreakoff at 2007-11-11 20:48:51 >
# 2 Re: How to get file without providing a full path?
You must provide a full path to identify a specific file. What's preventing you from providing that path?
arjonesiii at 2007-11-11 20:49:58 >
# 3 Re: How to get file without providing a full path?
Thanks everyone,

I have found a way to retrieve part of the path instead of giving a full path... My file is located in the sub directory of the main project directory.

eg.
myProject/word/someText.doc.

I have used Server.MapPath() to retrieve my files.

Kero :)
kero at 2007-11-11 20:50:56 >