|
-
Oct 2nd, 2007, 11:46 AM
#1
Thread Starter
Fanatic Member
filesystem object Q
I am pulling this text (\\3.72.35.122\Shared\Testdoc.doc) from a DB and want to test if it is actually a good link. The below code does not seem to see the link nor the file. The link="\\33.2.35.122\Shared\Testdoc.doc"
<code>
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
if fs.FileExists(objrst("link"))=true then
%>
<a href="<%=objrst("link")%>"><img src="images/<%=objrst("image")%>"></a>
<%else %>
<img src="images/disconn.ico">
<%
end if
set fs=nothing
%>
</code>
How come it does not see it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|