Community forum

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


DanieleSalatti
2008-10-23T16:09:12Z
Hi!

I'm using VisualCron 4.9.26. I have to create a function that searches folder for files containing a particular string and move only those files in another folder. Both are network folders.

The problem is, I'm not able to use a wildcard (*) in file name for conditions of type "File - content - contains". VisualCron says that there are illegal chars in file path.

I would like to avoid the use of scripts.

Any idea?
Sponsor
Forum information
ErikC
2008-10-23T19:42:04Z
Hi DanieleSalatti,

Without scripting... hmm... 🤔
What you could try is the following:

Use a command execute task to run the cmd.exe from the windows folder.
As arguments use the '/c' for running a dos command and than the move command.

MOVE [/Y | /-Y] [station:][path]filename[,...] target


So it looks like this:

Program  : C:\Windows\System32\cmd.exe
Arguments: /c MOVE /Y \\sourcefolder\myfiles*.* \\targetfolder


So no scripting over here.
Hoped it helped you. [-o<

Regards
Erik
Uses Visualcron since 2006.
Support
2008-10-23T20:03:59Z
In version 5 we will provide filters for file content as well.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
2008-10-23T20:35:18Z
bommer, I thought I had the best solution for this.... 🤐

With filters, you win!

Regards
Erik
Uses Visualcron since 2006.
Support
2008-10-23T20:51:38Z
Thanks, it is a good temporary solution. Version 5 is a lot of work and it may take some time to finish it.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top