lukeneo Posted August 29, 2006 Share Posted August 29, 2006 $Logs = FileOpen(@ScriptDir &"\log" & @YEAR & @MON & @MDAY & '-' & @HOUR & @MIN & @SEC & '.LOG', 1) The above code is executing ... But not saved in the /log / folder under @scriptDir . rather saved in @scriptdir . what is wrong ? Link to comment Share on other sites More sharing options...
McGod Posted August 29, 2006 Share Posted August 29, 2006 $Logs = FileOpen(@ScriptDir &"\log\" & @YEAR & @MON & @MDAY & '-' & @HOUR & @MIN & @SEC & '.LOG', 1) Forgot an extra slash after log [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 29, 2006 Moderators Share Posted August 29, 2006 FileOpen doesn't save anything, But it can create the log if you use something like FileOpen(blah, 2). (Or a combination of others with the 2 in it).If you are wanting to save the data that was there previous (doubtful since your using @Hour and @Sec) then FileRead() it before you erase the content. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
lukeneo Posted August 29, 2006 Author Share Posted August 29, 2006 FileOpen doesn't save anything, But it can create the log if you use something like FileOpen(blah, 2). (Or a combination of others with the 2 in it).If you are wanting to save the data that was there previous (doubtful since your using @Hour and @Sec) then FileRead() it before you erase the content.Chip ! Thanks .... 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