M
middletree
I'm on an Intranet, and our Intranet server is on the same domain as the
users. I have one place where I wanted to create a clickable link which
would take the user to the directory for that Ticket. So if you're on the
page for Ticket 1000, the word "Files" is surrounded by this:
<a href=\\servername\tickets\<%=strTicketid%> target="_blank">Files</a>
This works fine if the directory exists. (Not every ticket has a
corresponding folder). But if it doesn't exist, users who click the link
will get an empty window.
This is not the end of the world, but it would be nice to have the page see
if the folder exists, and if not, don't have the link.
In my testing of the FileSystemObject, using the "FolderExists", it works
fine on my machine. But not when it's on anohter machine. I have tried it
using the above naming convention, and also with the dirve letter that
everyone has mapped to this folder, and neither way works.
I went to ASPFAQ.com, but didn't find anything that addresses this
situation.
users. I have one place where I wanted to create a clickable link which
would take the user to the directory for that Ticket. So if you're on the
page for Ticket 1000, the word "Files" is surrounded by this:
<a href=\\servername\tickets\<%=strTicketid%> target="_blank">Files</a>
This works fine if the directory exists. (Not every ticket has a
corresponding folder). But if it doesn't exist, users who click the link
will get an empty window.
This is not the end of the world, but it would be nice to have the page see
if the folder exists, and if not, don't have the link.
In my testing of the FileSystemObject, using the "FolderExists", it works
fine on my machine. But not when it's on anohter machine. I have tried it
using the above naming convention, and also with the dirve letter that
everyone has mapped to this folder, and neither way works.
I went to ASPFAQ.com, but didn't find anything that addresses this
situation.