Menu

Strange command on update tags behavior

Korwin
2021-07-21
2021-07-22
  • Korwin

    Korwin - 2021-07-21

    Setup application configuration / Signalling / Default command on update:
    Vars.cmd %addr %chk %crc %desc %guid %ip %ping %res %resp > Vars.txt

    Vars.cmd

    echo 1. addr: %1
    echo 2. chk: %2
    echo 3. crc: %3
    echo 4. desc: %4
    echo 5. guid: %5
    echo 6. ip: %6
    echo 7. ping: %7
    echo 8. res: %8
    echo 9. resp: %9
    

    Vars.txt:

    1. addr: https://sites.google.com/site/...
    2. chk: 2021-07-21
    3. crc: 22:45:09
    4. desc: 2621298306
    5. guid: Test
    6. ip: E3A64DE8-59004509-97E9460E-94C8BC49
    7. ping: Unknown
    8. res: OK
    9. resp: OKp
    

    i.e. instead of "New CRC" time is displayed, instead of "Item's description" - "New CRC", instead of GUID - the name of the entry in the list of the main application window, etc. "Item info" / "Content history" and "Ping history" tabs are empty.

     
  • Morten MacFly

    Morten MacFly - 2021-07-22

    Remember, as for all command lines, parameters (here: tags) that may contain spaces need to be quoted. If you hover over the two tag labels in the dialog you''ll see which tags may contain spaces.

    So, instead of:
    Vars.cmd %addr %chk (...)
    ...use:
    Vars.cmd %addr "%chk" (...)
    ...and it will work correctly.

    If you don't, the date (e.g. 2021-08-01 14:55:00) will be two command line parameters and thats why you see %2 and %3 as splitted %chk tag and miss some others (after %9).

     
    👍
    1

Anonymous
Anonymous

Add attachments
Cancel