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.


ErikC
  •  ErikC
  • Paid support Topic Starter
2010-01-05T10:19:10Z
I want to copy files and the destination is different every time.

The destination dir is created with a unique file name variable and the create directory task.

At the moment I know it isn't possible to get the output name of the created dir in the variable section, So I made a task showing in the output the full directory just created.

In the file copy task I want to use this output as the destination path, so I included the variable which contains the output of the previous task containing the full path to the directory.

The file copy isn't working. I receive the following error:

Exception in Task: Illegal characters in path.


It looks like the destination isn't parsing the variable to a string.

Am I correct?

Regards
Erik
Uses Visualcron since 2006.
Sponsor
Forum information
Support
2010-01-05T10:33:12Z
Hmm..I was not able to directly reproduce this. I created a new Variable containing a string representation of a folder to another drive:

f:\test

I used my Variable in destination path:

{USERVAR(destionation)}

Then it copied correctly all files to f:\test
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2010-01-05T10:33:58Z
It would be interesting if you wrote the Variable to a file in between this Copy files Task so we can see the value
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2010-01-05T10:37:33Z
What I did to test it, was the following:

1. execute task with this command: C:\WINDOWS\system32\cmd.exe /c echo F:\Temp\POSTBUS\ProcessFolder\aaa
2. file copy task with the destination to: {TASK(b002a3ce-cfe6-4465-8a30-6935023b1156,StdOut)}

So this one referes to the previous task containing the output.


Uses Visualcron since 2006.
Support
2010-01-05T10:41:53Z
The problem is that some new line characters are in the output. Try adding a Trim Variable function around it.

For the next version we will trim this destination path as well automatically.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2010-01-05T10:49:40Z
yes, this worked. 😁
Uses Visualcron since 2006.
Scroll to Top