%@ Language=VBScript %> <% Option Explicit %> <% '------------------------------------------------------------------------- ' nfslocks_prop.asp: Displays NFS Locks and facilitates for deletion ' ' Copyright (c) Microsoft Corporation. All rights reserved. ' ' Date Description '21-sep-00 Creation date '------------------------------------------------------------------------- %> <% On Error Resume Next Err.clear '------------------------------------------------------------------------- ' Form Variables '------------------------------------------------------------------------- Dim F_nWaitPeriod 'Wait Period for the appliance Dim F_strClientsToRelease 'Save the clients to be released '------------------------------------------------------------------------- ' Global Variables '------------------------------------------------------------------------- Dim G_objService 'object to WMI Service Dim G_strComputerName 'Local machine name Dim G_objLock F_nWaitPeriod = 0 F_strClientsToRelease = "" set G_objService = GetWMIConnection("root\SFUAdmin") Set G_objLock = Server.CreateObject("NFSLockEnum.1") '------------------------------------------------------------------------- ' Create the page and Event handler '------------------------------------------------------------------------- Dim page Dim rc rc = SA_CreatePage(L_TASKTITLE_LOCKS_TEXT, "", PT_PROPERTY, page) If rc = 0 Then SA_ShowPage( page ) End If Public Function OnInitPage( ByRef PageIn, ByRef EventArg) SetVariablesFromSystem OnInitPage = True End Function Public Function OnPostBackPage( ByRef PageIn, ByRef EventArg) SetVariablesFromForm OnPostBackPage = True End Function Public Function OnServePropertyPage( ByRef PageIn, ByRef EventArg) Err.Clear On Error Resume Next Call ServeCommonJavaScript() if not isServiceInstalled(getWMIConnection(CONST_WMI_WIN32_NAMESPACE),_ "nfssvc") then SA_ServeFailurePage L_NFSNOTINSTALLED_ERRORMESSAGE end if %>
<%=L_CURRENTLOCKS_TEXT%> | <%=L_LOCKSELECTHELP_TEXT%> | |
<%=L_WAITPERIOD_TEXT%> | ||
<%=L_WAITPERIODHELP_TEXT%> |