Settings - WriteLogfile
Write a text to a logfile. The contents of the logfile is completely replaced with the text (see AppendLogfile to append a text to a logfile). The first STRING is the name of the logfile, for example "C:\Program Files\MyDefrag v4.3.1\MyDefrag.log". The second STRING is the text to write to the logfile.- See the Variables for a list of variables that can be used in the text.
- The standard MyDefrag scripts create a logfile in the MyDefrag installation folder,
default is "C:\Program Files\MyDefrag v4.3.1\MyDefrag.log".
Note: Windows 7 is configured by default to deny regular users write-access to the "C:\Program Files" folder, so MyDefrag cannot create a logfile there.
Syntax
WriteLogfile(STRING , STRING) |
Example
# Write some basic information to the logfile. |
See also:
VariablesAppendLogfile
Settings