| | | Forum Member
       
Group: Forum Members Last Login: 8/25/2006 3:32:42 PM Posts: 39, Visits: 108 |
| Would it be possible to notify a user who has a file open, that the file is needed, and the he/she needs to close it?
For example a message " User smith is requesting file 20060718"
Adrian |
| | | | Forum Guru
       
Group: Forum Members Last Login: 9/8/2008 5:20:14 PM Posts: 51, Visits: 183 |
| I can point you in the right direction...
If you know ASP/VBscript (or even .NET), you could create a web page that allows the user to do a net send to the user.
Our ASP page doesn't alert the user, due to the fact that 99% of the time the user just left their workstation and wouldn't receive the message anyway. The page below is down and dirty, not written well and not commented well, but if you know VBscript you should be able to adjust it to your needs. Shouldn't be too hard to add a Net Send command
+++++++++++++++++++++++++++++++++++++++
<%on error resume Next
Set objServerObject = GetObject ("WinNT://YourFileServer/LanmanServer")%>
Open Point Files
Open Point Files:
This table was updated:
<%=Date & " - " & Time%>
This page updates every time you hit refresh.
<%If (IsEmpty(objServerObject) = False) Then
iCounter = 0
For Each objresource In objServerObject.resources
If (Not objresource.User = "") And (Not Right(objresource.User,1) = "$") Then
iCounter = iCounter + 1
'In the statements below, put in the path to you Point Files twice. Once to get the right directory
' and once to remove the path so that the user just sees the folder and the filename.
if left(objresource.path,19) = "D:\pointfilepath" and right(objresource.path,3)="BRW" then
opnfl = Replace(objresource.path, "D:\pointfilepath\", "")
opnfl = Replace(opnfl, "\BORROWER", "")
opnfl = Replace(opnfl, ".BRW", "")%>
| <%=opnfl%> | | <%=objresource.user%> |
<%end If
End If
Next
Else %>
Object Empty
<%End If %>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If you need more info, contact me directly. |
| | | | Forum Member
       
Group: Forum Members Last Login: 8/25/2006 3:32:42 PM Posts: 39, Visits: 108 |
| | Hi, Thanks for the reply. Adrian |
| |
|
|