Start exe without ending - VisualCron - Forum

Community forum

persi
  •  persi
  • Paid support Topic Starter
2016-05-20T12:40:41Z
Hi,

is it possible to start a programm from a job, the jobs ends but the exe runs until it is killed by task manager?

thanks
Sponsor
Forum information
thomas
2016-05-20T12:56:05Z
I haven't tested it, but maybe you could start a program from c# ? I guess it would be a void method calling System.Diagnostics.Process.Start(). You can try it out if you want to, I'm going fishing now!

http://stackoverflow.com...a-application-exe-from-c 


Thomas
bbusse
2016-05-20T14:12:22Z
Originally Posted by: persi 

Hi,

is it possible to start a program from a job, the jobs ends but the exe runs until it is killed by task manager?

thanks



Thomas is right. You'd have to launch the process using something else (VBS, C#, etc..) as a task, that starts a process and then quits, but the process remains. There's no native support for 'fire and forget' process execution currently in VisualCron that I've ever seen. I think this might be a good option for a Feature request. On the Process--Execute task maybe add a check box that, when checked, does NOT wait for output and just executes and moves to the next task (or quits job, if no other tasks, following standard flow).

Brian
Support
2016-05-23T14:07:02Z
It depends on how tightly connected the executable is to the Task. For example, if you supply direct path to notepad.exe in Execute Task the Job will stop when you kill the process outside of VC. But if you try to create sub processes in your script then VisualCron will not be aware of this until the parent process has exited.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top