Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Check to see if Virtual Directory exists

Reply
Thread Tools

Check to see if Virtual Directory exists

 
 
Pgar
Guest
Posts: n/a
 
      11-15-2004
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2FudGhhbmEgR29wYWxhbg==?=
Guest
Posts: n/a
 
      11-15-2004
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
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check if a directory exists? folder.exists() does not work! Ulf Meinhardt Java 8 08-28-2009 12:26 PM
How to check if all *.jars in my CLASSPATH really exists? Automatic check (not manual) possible? Jason Stacy Java 2 04-27-2008 08:14 AM
system.IO.File.Exists doesn't working for file that is outside my virtual directory Max ASP .Net 4 08-11-2006 07:29 PM
JSP: How to check to see if file exists? Sugapablo Java 1 03-27-2006 08:29 PM
How do I check to see if Oracle SID Exists? Colin Steadman ASP General 2 12-18-2003 12:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57