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


nubianbabe
2012-02-09T17:32:59Z
Hi - I have a batch (.bat) file which I would like to implement as a task within VisualCron. That batch file triggers the launch of an application and a process within that application followed by certain dos commands. The application and the files are all located on the local machine

Kindly advise if within the Visual Cron application I can use a .bat file in this manner to launch the third party application. We have tested the file using the Execute command task, however it only runs the dos commands, and ignores the instruction to launch the application
Sponsor
Forum information
matrixIII
2012-02-09T17:52:35Z
Originally Posted by: nubianbabe 

Hi - I have a batch (.bat) file which I would like to implement as a task within VisualCron. That batch file triggers the launch of an application and a process within that application followed by certain dos commands. The application and the files are all located on the local machine

Kindly advise if within the Visual Cron application I can use a .bat file in this manner to launch the third party application. We have tested the file using the Execute command task, however it only runs the dos commands, and ignores the instruction to launch the application



If the vendor application is not command line, then try running the bat file in "foreground" execution mode. Also, the "Tray Client" must be running when the job starts (so someone must be logged on to the PC where the server is running). I havent tried it but based on past reading of the forums, it may work this way.
nubianbabe
2012-02-09T18:44:21Z
hi

where do i place the trigger to run the bat file.
matrixIII
2012-02-09T20:46:42Z
Originally Posted by: nubianbabe 

hi

where do i place the trigger to run the bat file.



Not sure what you mean by trigger...

Is the third party program not command line? If so then try the following...

1. Under a job.. create a task [Add] -> [Process] -> [Execute]
2. On the [Main settings] click [Change] next to Background execution and change to "Foreground execution". Change other settings as appropriate.
3. Under the [Execute] tab browse or specify the path to your bat file.

Save everything and try to run the job (by right clicking on the job and selection "Run Job"...

If it runs fine, then edit the job again and under [Triggers] tab you can specify a schedule when your task (aka bat file) should run.
Support
2012-02-09T20:48:07Z
I am not sure I understand. It sounds like you just want to launch a .bat-file which in turn triggers (starts) another application?

Do you just want to run the batch file from VisualCron or do you want to run the batch file outside VisualCron?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2012-02-09T20:52:20Z
It seems like you were on the right track with the Execute Task. The problem is probably that you have set the wrong working directory (maybe the batch file expects a special folder) or that you do not use full paths to the exe (or files you want to start) in the batch file. Please post the batch file here and screenshots of the execute Task.

You should not have to do foreground execution.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top