KB-133384: dir.clear

dir.clear

The command dir.clear can be used to delete the contents of the directory. This way the directory can be emptied before new files can be copied into it.

Syntax:

dir.clear

Example

Function ScriptAfterUpload
{
    //Temp-path:
    $def::var1 = $vdog::randomname$vdog::randomname

    // Create backup copy
    dir.copy
    {
                source $vdog::specific->dirbackupserver01winccproj
                dest $def::var1
    }
    dir.clear $vdog::specific->dirbackup

    dir.copy
    {
                source $def::var1
                dest $vdog::specific->dirbackupWinCCProj
    }
    dir.delete $def::var1
}

Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center