469,622 Members | 2,073 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

get the full file path

Ken
I have application files under "C:\$\TestApp".
there is a test.xml file under "C:\$\TestApp\test.xml"
I made a virtural directory in IIS as "TestApp"

currently in application, "Request.MapPath( string)" is used to get the full
filepath.
the result is like @"c:\inetpub\wwwroot\TestApp\test.xml"
but the real path is @"c:$\TestApp\test.xml".

What should I use to get the real path?

Thanks
Jun 1 '07 #1
3 2698
Server.MapPath(relativePath)
"Ken" <kl**@jeromegroup.comwrote in message
news:et**************@TK2MSFTNGP05.phx.gbl...
>I have application files under "C:\$\TestApp".
there is a test.xml file under "C:\$\TestApp\test.xml"
I made a virtural directory in IIS as "TestApp"

currently in application, "Request.MapPath( string)" is used to get the
full filepath.
the result is like @"c:\inetpub\wwwroot\TestApp\test.xml"
but the real path is @"c:$\TestApp\test.xml".

What should I use to get the real path?

Thanks


Jun 1 '07 #2
Ken
the result is same as Request.MapPath(relativePath)

"Scott M." <s-***@nospam.nospamwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
Server.MapPath(relativePath)
"Ken" <kl**@jeromegroup.comwrote in message
news:et**************@TK2MSFTNGP05.phx.gbl...
>>I have application files under "C:\$\TestApp".
there is a test.xml file under "C:\$\TestApp\test.xml"
I made a virtural directory in IIS as "TestApp"

currently in application, "Request.MapPath( string)" is used to get the
full filepath.
the result is like @"c:\inetpub\wwwroot\TestApp\test.xml"
but the real path is @"c:$\TestApp\test.xml".

What should I use to get the real path?

Thanks



Jun 1 '07 #3
Ken,

Have a look at the path class
http://msdn2.microsoft.com/en-us/lib...m.io.path.aspx

Cor
"Ken" <kl**@jeromegroup.comschreef in bericht
news:%2****************@TK2MSFTNGP03.phx.gbl...
the result is same as Request.MapPath(relativePath)

"Scott M." <s-***@nospam.nospamwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
>Server.MapPath(relativePath)
"Ken" <kl**@jeromegroup.comwrote in message
news:et**************@TK2MSFTNGP05.phx.gbl...
>>>I have application files under "C:\$\TestApp".
there is a test.xml file under "C:\$\TestApp\test.xml"
I made a virtural directory in IIS as "TestApp"

currently in application, "Request.MapPath( string)" is used to get the
full filepath.
the result is like @"c:\inetpub\wwwroot\TestApp\test.xml"
but the real path is @"c:$\TestApp\test.xml".

What should I use to get the real path?

Thanks




Jun 2 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Xah Lee | last post: by
15 posts views Thread by (Pete Cresswell) | last post: by
5 posts views Thread by Smarty | last post: by
11 posts views Thread by rh00667 | last post: by
4 posts views Thread by Michel Rouzic | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.