Guest Foamfollower Posted June 30, 2004 Share Posted June 30, 2004 I am trying to get a log file to write using the _FilewriteLog function but am having no success. Has anyone else had a problem with this? I am a new writer and there is a good chance that I have written it incorrectly. I would appreciate it if someone could look at it for errors.;Create a log file #include File.au3Dim $cmptnme = @ComputerNameDim $sLogPath = "c:\instlog\sitelog.txt"Dim $sLogMsg = "Installation completed on Outlook Client"Func _FileWriteLog ($sLogPath, $sMsg )EndFuncThanks, Foamfollower Link to comment Share on other sites More sharing options...
Developers Jos Posted June 30, 2004 Developers Share Posted June 30, 2004 #include <File.au3> Dim $cmptnme = @ComputerName Dim $sLogPath = "c:\instlog\sitelog.txt" Dim $sLogMsg = "Installation completed on Outlook Client" _FileWriteLog ($sLogPath, $sMsg ) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Guest Foamfollower Posted July 1, 2004 Share Posted July 1, 2004 Thanks for the direction. I ended up with this: ; Create a log file#include <File.au3> Local $sDateNow Local $sTimeNow Local $hOpenFile Local $hWriteFile Dim $sLogMsg = "Installation completed on Outlook Client" Dim $sDateTimeNow = @ComputerName & "*****" & @YEAR & "-" & @MON & "-" & @MDAY & "-" & @Hour & ":" & @MIN & ":" & @SEC & ":" & $sLogMsg Dim $sLogPath = "c:\instlog\sitelog.txt" _FileWriteLog ($sLogPath, $sDateTimeNow ) exit The date repeats but I will work that out 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