PDA

View Full Version : File pathnames within a web service


bruce
06-06-2006, 05:48 AM
You can either

1) use server.mappath function, eg. server.mappath('/')

or

2) you can find the physical path to your site root in the account info section in the control panel.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

Kattack
06-06-2006, 06:55 AM
My web service needs to read files located in my website file directories. How do I get the pathname of these files? The working directory for the web service is "system32" so relative paths don't work. How do I know where on the DiscountASP server my files are? Is these some kind of environment variable? Seems like a simple enough thing but it's got me stumped.