May be this article would help you.
http://support.microsoft.com/kb/816150/EN-US/
Refer to the code,
if(!Directory.Exists(strFolder))
Regards,
Santhana Gopalan.
"Pgar" wrote:
> I have a page that I have the users uploading files from their local
> machines. I take these files strip off their path and redirect it to a
> new file on the web server. I have a virtual directory mapped to a
> remote machine that has files in it named for the years for items that
> the users are uploading supporting documents (i.e. 2003, 2004, etc.) I
> want to check to see if the folder for a specific year exists in the
> Virtual Directory. Is there a way to accomplish this? In short I want
> to verify that a file exists in the Virtual Directory on the web
> server.
>
> Thanks all,
> PGar
>