Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

how one file and check its value then move computer to a collection

Hello

I am a newbie with PDQ Inventory... and after googling a certain time i did not sort of trouble.

Based on list of computers (example C01 to C10), i have to check the following infos and report/create dynamic collections:

If "folder"=C:\DassaultSystems\B25 folder not exists move the pc to "CATIA_NOT_INSTALLED" collection

If folder exists, put pc in CATIA_INSTALLED

when 1st treatment is done:

check if file=C:\DassaultSystemes\B25\win_b64\LevelSPK.txt exist and if the file contains the string "toto"

if not move pc to dynamic collection "SP_toto_not_installed"

if yes move pc to dynamic collection "SP_toto_installed"

....

then same with an other file and so on

 

maybe a way exists to perform all checks in a raw :)

 

All the best

if "folder" exists, check

0

Comments

2 comments
Date Votes
  • Generally it works like this:

    1. Create dynamic collection
    2. Choose Filter, Column, Comparison and add value
    3. Add another dynamic collection under the fist one and check "Dill down from parent collection"
    4. Choose Filter, Column, Comparison and add value

    But u want to check for a folder, which I didn't until now. Maybe u can do this with the "pro" version if choose the filter "file". At least u can check for a file which always exist in this folder.

    With free version u have to choose another filter then (e.g. Application>Name, Disc Drive>Description, etc...)

    CHEERS!

     

    0
  • You can only perform file scans, not folder scans.

     

    maybe setup two file scans. (app a and app b)

    Then setup dynamic collection for machines missing app A
    Then setup dynamic collection for machines with app A but missing app B.

     

    Then just setup a schedule that deploys app A to first dynamic collection and app B to second dynamic collection

    0