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


rpa2k
  •  rpa2k
  • No customer Topic Starter
2009-06-19T00:07:17Z
Hello,

i try to use a console application written in .NET (C# or VB.net).
This program is very simple to test the output value like following code:

Module Module1
Sub Main()
Console.WriteLine("Finish Time: " & DateTime.Now.ToString())
End Sub
End Module

If i run this little code i get the message.
If i run this program with VisualCron the Output window is always empty. I thought every Console.WriteLine Output will be displayed in the Task Output area on visual Cron?

So can you give me a short introduce how i can get messages from the console and show it on the output area?

Thanks a lot.

PS: I need the Output values to send an Email or to report some errors occurs in the console application.
Sponsor
Forum information
ErikC
2009-06-19T09:09:31Z
Hi rpa2k,

I created the same program myself in c#. I had to change the & into a + to join the strings together so the line is:

Console.WriteLine("Finish Time: " + DateTime.Now.ToString());

When I started the application as an execute task I have the result in the output window (Finish Time: 6/19/2009 9:07:52 AM). I used beta verion 5.1.7 for this test.

Regards
Erik
Uses Visualcron since 2006.
rpa2k
  •  rpa2k
  • No customer Topic Starter
2009-06-19T09:33:55Z
Hi,

thanks for answer.

I use 5.1.6 under Windows 2008 Server (32 bit Version).

I have done exact the same but the output window is still empty. (Changed language to C#).
ErikC
2009-06-19T09:38:29Z
Here are some screenshots of 5.1.7:

ErikC attached the following image(s):

Uses Visualcron since 2006.
Support
2009-06-19T14:30:42Z
It could be that you have checked "Use shell Execute" in Execute settings.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rpa2k
  •  rpa2k
  • No customer Topic Starter
2009-06-19T14:39:07Z
Hi,

"Use shell Execute" is not checked.

The Output window is still empty..

Should i use the 5.1.7 Version?

Greetings
Support
2009-06-19T21:44:27Z
It should not matter which version. Is there an exe we can try from here. I guess you are not writing to STDOUT?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rpa2k
  •  rpa2k
  • No customer Topic Starter
2009-06-19T22:25:11Z
It is a normal console application.

I start Visual Studio 2008, Create a new Console Application and write little Code to the Main Method like Console.WriteLine("Hello there").

If i run this little exe directly from the command prompt i get the message. If i run this exe via visual cron the output is still empty.

It is only a little Test-App.
ErikC
2009-06-20T10:23:04Z
rpa2k wrote:

It is a normal console application.

I start Visual Studio 2008, Create a new Console Application and write little Code to the Main Method like Console.WriteLine("Hello there").

If i run this little exe directly from the command prompt i get the message. If i run this exe via visual cron the output is still empty.

It is only a little Test-App.



Strange, I did exactly the same and you see the screenshots above..

Regards
Erik
Uses Visualcron since 2006.
Scroll to Top