is the file mach.snp located in the path :
d:\Inetpub\wwwroot\matlsmain\getcruisin\matlsmain\webreports\

Try to access it via windows explorer...

Abdel


>From: "Martha Graves" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: FileExists Method
>Date: Thu, 10 May 2001 14:12:05 -0500
>
>
>
>I am trying to use MapPath and FileExists to test whether or not a file 
>exists
>before attempting to display the report.  The idea being that if the file 
>isn't
>there, I can redirect to an text file with an error message.  I am doing 
>some
>tests on a file that I know exists on the server, but the FileExists code 
>that I
>have keeps returning False.  I am hoping someone can look at the code and 
>see
>where I am going astray.  Here is the code:
>
><%
>FileName = Server.MapPath("getcruisin/matlsmain/webreports/mach.snp")
>dim fs
>set fs=Server.CreateObject("Scripting.FileSystemObject")
>if fs.FileExists(FileName) = true then
>    Response.Write("<br>File " & FileName & " exists.")
>else
>    Response.Write("<br>File " & FileName & " does not exist.")
>end If
>set fs=nothing
>%>
>
>And the result says:
>File d:\Inetpub\wwwroot\matlsmain\getcruisin\matlsmain\webreports\mach.snp 
>does
>not exist.
>
>Any help would be appreciated.
>Thanks, Martha
>
>
>
>^^^^^^^^^^^^^^^^^^^ http://asp-lists.com/ ^^^^^^^^^^^^^^^^^^
>              Get Your ASP On The Fast Track!
>Join the growing number of Application Service Provider pros
>using the ASP-Lists to maximize their company's potential.
>
>_____________  The Manufacturing Industry ASP Discussion List  
>_____________
>To Join: mailto:[EMAIL PROTECTED]
>To Remove: mailto:[EMAIL PROTECTED]
>Archives: http://www.asp-lists.com/industrial/manufacturing/archives/

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


^^^^^^^^^^^^^^^^^^^ http://asp-lists.com/ ^^^^^^^^^^^^^^^^^^
             Get Your ASP On The Fast Track!
Join the growing number of Application Service Provider pros
using the ASP-Lists to maximize their company's potential.

_____________  The Manufacturing Industry ASP Discussion List  _____________
To Join: mailto:[EMAIL PROTECTED]
To Remove: mailto:[EMAIL PROTECTED]
Archives: http://www.asp-lists.com/industrial/manufacturing/archives/

Reply via email to