user571099
user571099

Reputation: 1511

asp classic: getting current path of a file located in a administrative folder

i have a file located at a folder whose full path is something like this:

\mymachine\mydrive$\Inetpub\wwwroot\myfolder

is it possible through asp serverVariables to get the same value? i'm afraid of exposing the path above in my source code. thanks!

Upvotes: 5

Views: 8317

Answers (1)

user571099
user571099

Reputation: 1511

in case anyone is wondering i found the solution. i used

Server.MapPath(".")

Upvotes: 17

Related Questions