471,594 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

Server.MapPath() unix path

Hi,
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 1399
jhardman
3,406 Expert 2GB
what about just writing it? Can you just say response.write server.mapPath(...?

Jared
Sep 11 '07 #2

Post your reply

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

Similar topics

4 posts views Thread by vunet.us | last post: by
3 posts views Thread by rn5a | last post: by
6 posts views Thread by withers | last post: by
3 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.