DJones Posted December 13, 2004 Share Posted December 13, 2004 The script below is not opening the file in write mode... ; Logging centrally $enablecentrallogging = iniread ( @scriptdir & "\" & $ssoclientupdateinifile, "InstallSettings", "EnableCentralLogging", "No" ) if $enablecentrallogging = "yes" then $centralloggingpath = iniread ( @scriptdir & "\" & $ssoclientupdateinifile, "InstallSettings", "CentralLoggingPath", "" ) ; Log the event on failure if not fileexists ( $centralloggingpath & "\LogFailed\ClientFailed.log") then dircreate ( $centralloggingpath & "\LogFailed" ) endif $centtrallogfile = FileOpen( $centralloggingpath & "\LogFailed\ClientFailed.log", 1) ; Check if file opened for writing OK If $centrallogfile <> -1 Then FileWriteLine ( $centrallogfile, "Update failed on: " & @computername & "," & @username & "," & $updatessoversion & "," & @MON & "\" & @MDAY & "\" & @YEAR) FileClose($centrallogfile) EndIf endif Link to comment Share on other sites More sharing options...
CyberSlug Posted December 13, 2004 Share Posted December 13, 2004 I think you misspelled the variable: $centtrallogfile = FileOpen(... If $centrallogfile <> -1 Then Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now