Ad Widget

Collapse

vfs.file.exsists Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stilla99
    Junior Member
    • Jun 2016
    • 1

    #1

    vfs.file.exsists Problem

    Hello Guys

    Im troubleshooting a problem but didn't find the answer yet.

    I want to create a trigger that if a file with the ending .txt.ERROR in a directory is created, I recieve an error Message on my monitoring screen.

    It works fine with a specific file like B323347632.txt.ERROR but doesn't work with an unspecified file like *.txt.ERROR.

    This works:

    {server:vfs.file.exists[D:\Testing\B20140917060006001.txt.ERROR].last(0)}=1 & {server:vfs.file.exists[D:\Testing\B20140917060006001.txt.ERROR].nodata(86400)}=0

    This don't:

    {server:vfs.file.exists[D:\Testing\*.txt.ERROR].last(0)}=1 & {server:vfs.file.exists[D:\Testing\*.txt.ERROR].nodata(86400)}=0

    Does anyone know, how to solve the problem?

    Thank you
  • zabx_ks
    Member
    • May 2016
    • 48

    #2
    Hi stilla99

    It's not possible to do that with vfs.file.exists.
    But you can try to make some workaround with logrt.
    Example - you can set to find any symbol in your files ".txt.ERROR" so if your item will find any symbol, that will mean the file exist.

    zabx_ks

    Comment

    Working...