KB-127575: file.create

file.create

The command file.create can be used to create a file, the contents of which can be filled with write arguments. Any number of write arguments can be used.

Syntax:

file.create `<File>`
{
write `<Info without line break>`
write.line `<Info will be included at the end after the line break>`
write.line.ifok `<Lines are only written if the Exitcode after a call = 0.>`
write.line.ifnok `<Lines will only be written if the Exist code after a call does not = 0.>`
write.ini `<[Section]Key=Value, writes an entry in the INI file>`
}

Example

Function ScriptBeforeUpload
{
file.create $vdog::specific->dirbackupxcopy.log
{
write.line.ifio Backup von "$vdog::uploadjob->5100:$vdog::uploadjob->5120*.*" was successfully carried out.
write.line.ifnio Backup von "$vdog::uploadjob->5100:$vdog::uploadjob->5120*.*" ended in an error.
}
}

Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center