Using Script Execute causes Visual C++ Runtime Error - VisualCron - Forum

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


chindall
13 years ago
For the longest time I have used VisualCron for all of our vbscript scripts. Normally I use Execute Task, set execution to foreground and use cscript to execute my scripts. This has disadvantages because if the script fails VisualCron still returns a green check because there is nothing being passed to say otherwise. Execute Script is the ideal way to work however this runs in the background only. Our scripts launch applications like WSFTP scripting or Terminal applications such as Zoc. I have tried everything from loaded a profile and different execution techniques. Nothing works. I really want to use this important feature so I can get proper results from my scripts. Any help is greatly appreciated.
Sponsor
Forum information
Support
13 years ago
So, the question is why your scripts are failing? Have you tried using the latest version and check "Local login" and "Load profile" at Credential level (the Credential that you use).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
chindall
13 years ago
The scripts are not failing. The scripts launch a program. If using Background Task launching those programs will not work. I need to be able to launch the programs in the foreground. Some programs do not cause the Visual c++ run time error but do stall because they don't seem to be able to run in the background.

Is there any possible way to execute scripts in the foreground?
Support
13 years ago
I was just searching for the main reason why those Tasks do not work in the background? If that is known maybe we can have a better workaround.

Foreground execution is not yet possible with Execute script Task but could be implemented. I am moving this topic to Feature requests.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
chindall
13 years ago
Originally Posted by: Support 

I was just searching for the main reason why those Tasks do not work in the background? If that is known maybe we can have a better workaround.

Foreground execution is not yet possible with Execute script Task but could be implemented. I am moving this topic to Feature requests.



The Applications launched are Terminal Programs (Zoc) and FTP (WSFTP) which work fine in the foreground but do not run well in the background.

Zoc - http://www.emtec.com/zoc/ 

WSFTP - http://download.cnet.com...000-2160_4-10562420.html 
chindall
12 years ago
Is there any update on this? This is really needed by my company to continue to use VisualCron successfully.
Support
12 years ago
I think there is an easy workaround. You can just use the Execute Task which has the foreground option. The only thing you need to do, if it is a vbscript, is to put full path to wscript.exe in command and full path to your script in argument.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top