
files exists or not - says that it doesn't exist
You ASP code is checking for the file on the server. I assume by "local workstation" you mean the
one running the browser client. You can't sniff for client side files from server side code...
--
Michael Harris
MVP Scripting
Hello,
Help would be muchly appreciated. Thanks in advance.
I am trying to test for the existence of a file on the local workstation
using VBScript on an asp page. Below is the code that I am trying to make
functional.
Even though the file "C:\TEMP\npcknet.dll" exists, the message that it
"doesn't exist." is still displayed. What am I missing.
<%
Dim fso, msg, file_name
file_name="C:\TEMP\npcknet.dll"
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists(file_name)) Then
msg = file_name & " exists."
Else
msg = file_name & " doesn't exist."
End If
response.write (msg)
%>
Dave Stephens