469,271 Members | 1,206 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Server.MapPath() unix path

1.what if my Html and my script are on a unix server and I have to provide a unix path, what would the unix path format be?
var f = fs.GetFolder(Server.MapPath("/bin/somedir/somedir/");
or can i directly use
var f = fs.GetFolder("/bin/somedir/somedir/");
but the above two do not work. They work fine on windows with Windows path
var f = fs.GetFolder("c:/");

and not with unix path. Please help.
Sep 10 '07 #1
1 1367
3,406 Expert 2GB
what about just writing it? Can you just say response.write server.mapPath(...?

Sep 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.