Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


michaelhum
2018-07-06T18:07:04Z
Hi,
Request for these features

- For the List files task, can you provide 2 new options 1. List the newest file 2. List the oldest file. I need to simply determine what the oldest and newest file is in a directory.
Sponsor
Forum information
Support
2018-07-10T11:34:11Z
You can already do this. In the result tab you have sorting and can also choose to limit result by 1.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
michaelhum
2018-07-10T13:19:45Z
Thanks for pointing out the feature. It exactly what I need!

Thank you.
michaelhum
2018-07-11T13:49:36Z
Hi,
I may have "replied too soon".

I am able to list the most recent and oldest file in a directory with Results filter in the List File(s) task. However, the Output settings (Full path to file or File name only), seems to only output the full path.

Example:

In the Output settings
1. Select Full path to file
- output: c:\test.txt

2. Select File name only
- output: c:\test.txt

I need to output: text.txt
Support
2018-07-11T19:40:37Z
Right now it lists the full path in output. If you process the result one by one in a loop you can use Variable below to get the file name only:

{PATH(GetFileName|{LOOP(CurrentValueX)})}

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
michaelhum
2018-07-11T20:19:16Z
Hi,
Would you believe in v8.35 it works almost. It doesn't work when you use the "Test tab" in the task List File(s), to display the expected output

Example
In the Output settings
1. Select Full path to file
Select Test tab, Press Show filter files
- output: c:\test.txt

2. Select File name only
Select Test tab, Press Show filter files
- output: c:\test.txt

However, {TASK(Active|StdOut)} does correctly reflect the Output settings, ie it produces the expected output

Example
In the Output settings
1. Select Full path to file
{TASK(Active|StdOut)} = c:\test.txt

2. Select File name only
{TASK(Active|StdOut)}= test.txt



Scroll to Top