|
-
Feb 1st, 2001, 09:55 AM
#1
Thread Starter
Black Cat
Given the physical path of a file, how would I get its virtual path from the web site?
Thanks,
Josh
-
Feb 1st, 2001, 04:38 PM
#2
You would have to know the physical path of the webroot to know for sure.
The default for IIS is c:\inetpub\wwwroot, but it can be changed to any directory.
-
Feb 2nd, 2001, 07:53 AM
#3
Thread Starter
Black Cat
Yeah, right now I'm stripping the "d:\inetpub\wwwroot" from the file name string and then replacing all "\"s with "/"s. I was hoping there was a more elegant, automatic way.
Thanks,
Josh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|