Jump to content

Recommended Posts

Posted

$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 ?

Posted

$Logs = FileOpen(@ScriptDir &"\log\" & @YEAR & @MON & @MDAY & '-' & @HOUR & @MIN & @SEC & '.LOG', 1)

Forgot an extra slash after log

  • Moderators
Posted

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.

Posted

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 ....

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...