hi,
i should check for new files in a folder and i don´t know how i should set the variable.
the names of the files are like this one "#content#{1CD85198-26C6-4bac-8C72-5D34B025DE35}#120321032#Full!zip" and without any extension.
they all beginn with "#content#" but %content% does not work.....
thank you
christian
file exists
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
What test method do you use to check files ?
Maybe you need %NewestFile% macro variable. It contains name of the newest file in specified folder.
This variable can be used with the following test methods like "Folder/File Size", "File/Folder Availability", "Compare Files".
Please note: when using variables in file path, "Translate macros" option should be enabled.
Please check the manual or visit our web site for more information at:
http://www.ks-soft.net/hostmon.eng/mfra ... especmacro
Maybe you need %NewestFile% macro variable. It contains name of the newest file in specified folder.
This variable can be used with the following test methods like "Folder/File Size", "File/Folder Availability", "Compare Files".
Please note: when using variables in file path, "Translate macros" option should be enabled.
Please check the manual or visit our web site for more information at:
http://www.ks-soft.net/hostmon.eng/mfra ... especmacro
There are several options depending on what exactly do you need:
- you may use Count Files test method and filemask #content#*.*
- you may use File/Folder Availability and %NewestFile% variable
What exactly means "check for new files in a folder"?
You need to find single newest file? count number of new files? Do you need to retrieve file name for some report or action? or you need number of the files?
Regards
Alex
- you may use Count Files test method and filemask #content#*.*
- you may use File/Folder Availability and %NewestFile% variable
What exactly means "check for new files in a folder"?
You need to find single newest file? count number of new files? Do you need to retrieve file name for some report or action? or you need number of the files?
Regards
Alex