ASP .NET - Virtual Folders - File manipulation functions

R

Richard

Hello,

Can any of the following functions work with the parameter passed as a
virtual path in a format like "http://localhost/MyWebApp/MyAppTempFiles" ?

File.Exists()
Directory.Exists()
File.Delete()
File.Move()

In my .NET web app virtual directory in IIS I have a virtual folder named
"MyAppTempFiles" (pointing to a folder outside the web app folder let's say
"c:\Web_App\Temp_Files").

The webpages access the files in that folder using the virtual folder
defined in IIS.

But when the app needs to delete or rename files, it has to find the real
path to the virtual folder on the server's file system. Is there a way to
delete and rename files thru their virtual folder's addresses like
"http://localhost/MyWebApp/MyAppTempFiles" ?

Thanks in advance,

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top