SCAN FUNCTIONS

From TDiWiki

Jump to: navigation, search

This script contains functions related to Scans to be used in other CWScripts

[edit] Script Properties

Name: SCAN_FUNCTIONS
Description: functions related to Scans
Profile: CONSOLE_MANAGER
Timeout: 30 (seconds)

[edit] Run Type

none

[edit] Script Text

// * Copyright 1999-2011 TDi Technologies, Inc. All rights reserved. *
// * The information in this software is subject to change without   *
// * notice and should not be construed as a commitment by TDi.      *
// * Created: 3/31/2011                                              *

function addscan(cons, scan)
{
  if (!cons.hasScan(scan)) {
    log("CONWRKS", "Add the "+scan+" scan to "+cons.name);
    cons.addScan(scan);
  }
}

function delscan(cons, scan)
{
  if(cons.hasScan(scan)) {
    log("CONWRKS", "Delete the "+scan+" scan from "+cons.name);
    cons.removeScan(scan);
  }
}

back to CWScript_-_New_for_ConsoleWorks_4.5

Personal tools