[Solved] Output a Simple String - VisualCron - Forum

Community forum

Nautius
2014-12-10T16:12:16Z
I am trying to find a task that just outputs a simple string. Te Set Variable Task is more than what I need. I just need a string output. That's it.

Am I just missing something glaringly obvious?
ErikC
2014-12-11T08:27:18Z
Hi Nautius,

What you can do is using an 'Execute task'.

Command: c:\windows\system32\cmd.exe
Arguments: /c echo YOURTEXTGOESHERE AND HERE

That should output: YOURTEXTGOESHERE AND HERE

You can alo use variables after the echo statement to show the contents of them.

Regards,
Erik
Uses Visualcron since 2006.
thomas
2014-12-11T14:08:10Z
Like eric said, or you can also 'cheat' by using the database

thomas attached the following image(s):
Nautius
2014-12-11T18:30:23Z
I am currently using the SQL task. I was hoping for something a little more simplistic.

Ok, thanks for the responses!
ErikC
2014-12-12T08:36:18Z
I did not think of the SQL task. Also a good one!
Thanks for sharing.

Regards
Erik
Uses Visualcron since 2006.
Support
2014-12-12T08:53:46Z
I think easiest way is to use the default values in the .NET code Task:

using System;

public class Test
{
 public static string SayHello()
 {
     return "Hello world";
 }
}

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top