Is it possible to acquire a list of files which exist in that virtual
directory ?
For my default project directory, i can get list of the specific files like
that;
*******************
DirectoryInfo drc = new DirectoryInfo("~/banners");
FileInfo[] FileLst = drc.GetFiles("*.swf");
*******************
But, how about for the virtaul directory, Is there a way to do this?
Thanks,
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Ned White" <nedwhite@> wrote in message
news:u7RYYQwr...@TK2MSFTNGP06.phx.gbl...
The physical path of my OutPic virtual directory is "C:\Media\Banners" and
if i use
DirectoryInfo sf = new DirectoryInfo(Server.MapPath("OutPic"));
It returs "'c:\inetpub\wwwroot\defaultsite\OutPic"
but the real physical path is "C:\Media\Banners" and the virtual path
is"'c:\inetpub\wwwroot\OutPic"
Sorry bu i don't understand that how can i convert the virtual path to
physical with MapPath ?
Thanks
"Eliyahu Goldin" <REMOVEALLCAPIT...@mMvVpPsS.org> wrote in
message news:O1AdkK1r...@TK2MSFTNGP06.phx.gbl...
What is the output for Server.MapPath("~/OutSrc") ?
--
Patrice
"Ned White" <nedwhite@> a écrit dans le message de groupe de discussion :
efkO$H2rIH...@TK2MSFTNGP05.phx.gbl...
"defaultsite" is the default project site. That's why if i use
Server.MapPath in my project it returns value for the project site, and it
puts
"defaultsite" before the OutSrc.
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:6CA9F99D-F1CF-431B...@microsoft.com...
I have never used it myself, just wondering if you can get any use of it.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Ned White" <nedwhite@> wrote in message
news:uutjFr2...@TK2MSFTNGP04.phx.gbl...