isaaclloyd
05-14-2005, 06:17 PM
Here is an example of what I am trying to do:
<%
.....
ipF = server.mappath("/myfolder/test.txt")
If objFSO.FileExists(ipF) & session("SS1") = "" Then
session("SS1") = "Yes"
etc...
elseIf objFSO.FileExists(ipfile2)
etc....
else
etc....
%>
I want to see if a file exists and if there is a session. If not, then I just want to know if the file exists... if the file doesn't even exists, then etc.. So far with the example above it always goes to the second IF statement. It's like it ignores the first IF statement. Any comments or suggestions would greatly be apreciated. Thanks.
~Isaac~
<%
.....
ipF = server.mappath("/myfolder/test.txt")
If objFSO.FileExists(ipF) & session("SS1") = "" Then
session("SS1") = "Yes"
etc...
elseIf objFSO.FileExists(ipfile2)
etc....
else
etc....
%>
I want to see if a file exists and if there is a session. If not, then I just want to know if the file exists... if the file doesn't even exists, then etc.. So far with the example above it always goes to the second IF statement. It's like it ignores the first IF statement. Any comments or suggestions would greatly be apreciated. Thanks.
~Isaac~