M
middletree
I have two separate questions that are closely related enough that I am
going to package them here.
1. On an Intranet app which tracks tickets for the Tech Support department,
I have the word "Files" hyperlinked like this: <a href=\\servername\files\
target="_blank"> and it points to a server on the network where files
relating to tickets are located.
I'd like to be able to point that link directly to the folder, which has the
same number as that ticket. For example, if you're clicking the link from
the page for ticket 1000, your link would be to \\servername\files\1000.
The problem with working with the above is that in some cases, the folder
doesn't exist, and when you click it, it really hoses your browser. It
freezes up, often causing users to have to restart the browser. Is there a
way to check to see if the folder exists, so I can put in an If statement?
I found the property "FileExists" of the FileSystemObject, but it doesn't
seem to work. If there is a setting that will make it work, I'd appreciate
guidance finding that. Also, is this a potential security problem?
I should add that the server where the files are located is not the same
machine as the intranet server where this app resides, but is on the same
network.
2. Now this one is more complex. I want to make it where only people who
are in the Tech Support Dept have permissions to even get into the "files"
directory described above. Of course, this is a network admin issue, not
ASP. But, if I have named a particular person in another department to help
me on a ticket, I'd like to automatically give him permissions to get to
that directory. Not the "files" directory, but the ticket directory under
it. In the example above, if I am getting John the DBA's help for Ticket
1000, and I have marked him as helping me in my SQL Server database, then
he'd have access to the folder called 1000 inside the Files directory.
Is it even possible to use ASP code to set permissions like that?
going to package them here.
1. On an Intranet app which tracks tickets for the Tech Support department,
I have the word "Files" hyperlinked like this: <a href=\\servername\files\
target="_blank"> and it points to a server on the network where files
relating to tickets are located.
I'd like to be able to point that link directly to the folder, which has the
same number as that ticket. For example, if you're clicking the link from
the page for ticket 1000, your link would be to \\servername\files\1000.
The problem with working with the above is that in some cases, the folder
doesn't exist, and when you click it, it really hoses your browser. It
freezes up, often causing users to have to restart the browser. Is there a
way to check to see if the folder exists, so I can put in an If statement?
I found the property "FileExists" of the FileSystemObject, but it doesn't
seem to work. If there is a setting that will make it work, I'd appreciate
guidance finding that. Also, is this a potential security problem?
I should add that the server where the files are located is not the same
machine as the intranet server where this app resides, but is on the same
network.
2. Now this one is more complex. I want to make it where only people who
are in the Tech Support Dept have permissions to even get into the "files"
directory described above. Of course, this is a network admin issue, not
ASP. But, if I have named a particular person in another department to help
me on a ticket, I'd like to automatically give him permissions to get to
that directory. Not the "files" directory, but the ticket directory under
it. In the example above, if I am getting John the DBA's help for Ticket
1000, and I have marked him as helping me in my SQL Server database, then
he'd have access to the folder called 1000 inside the Files directory.
Is it even possible to use ASP code to set permissions like that?