Jump to content

MarcoB

Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Posts posted by MarcoB

  1. Hallo Ralph,

    ich meine im englischen lautet die Option “Shrink Database” was auch der SQL-internen Funktion entspricht. Keine Garantie .. aber zumindest eine Erklärung :)

    Mit der Shrink Funktion werden unter anderem die nicht mehr benötigten (weil gelöschten) Speicherbereiche in der Datei wieder freigegeben. 
     

    Gruß
    Marco

  2. Thank you 0xcffaedfe,

     

    its a little bit more complicated :)

    If you wanna add params like “Programversion like 1.2.3” this is an working example 

    In this example i ignored params like “ver_build” and others …

     

    $json_array = [
    'nCategoryId' => 21,
    'arrNewExpressions' => array([
    'type' => 'params',
    'value' => [
    'ex_type' => 9,
    'l_expr' => [
    'type' => 'params',
    'value' => [
    'ex_type' => 4,
    'str' => 'MYFILENAME',
    'str_op' => 0,
    ]],
    'r_expr' => [
    'type' => 'params',
    'value' => [
    'ex_type' => 7,
    'ver_build' => 0,
    'ver_major' => 0,
    'ver_minor' => 0,
    'ver_op' => 4,
    'ver_revision' => 0,
    'ver_raw' => 9
    ]
    ],
    ]
    ]
    ),
    'bInclusions' => 1
    ];

     

  3. Hello,

     

    is there anyone out there who can give me an some help for the KSC API method

    FileCategorizer2::CreateCategory

     

    I want to create a Custom Group of type “simple” with multiple  “inclusions” of type “metadata”

     

    When i post data to the API i got the success message, but no inclusions are visible at the created category:

     

    I tried different kind of JSON-Data-arrays ..

    Here is one of many examples which is not working…

     

    $json_array = [

          'pCategory' => [

                 'name' => 'mynewCategory',

                  'CategoryType' => 0,

                   'exclusions' => [],

                    'inclusions' => [

                           'type' => 'params',

                            'value' => [

                               'ex_type' => 4,

                                'str' => 'myfirstinclusion.EXE',

                             ]

                   ]

         ]

    ];

     

×
×
  • Create New...