Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

How to automatically close the cmd window after running the code?

$
0
0
Hi All

I need some help,
I have created a bat job which executes perfectly.
I have created a Scheduled Tasks which runs the bat job at 12 everyday. Currently the CMD Opens up, its runs the job, once the job is finished the CMD remains open. However after the job has finished i want the CMD to close.

I believe i need to put “Exit” Somewhere in the code below. But i am unsure
Would appreciate any help available

This is my RunJob.bat code

SET PATH="C:\Pentaho\";%Path%;
@echo New job started via batch execution %date%
@echo New job started via batch execution %date%
C:
cd C:\
cd "C:/Pentaho_Jobs/ExtractOpps"
start kitchen.bat -file="C:\Pentaho_Jobs\ExtractOpps\ExtractOpps.kjb"
rem >> "C:/Pentaho_Jobs/ExtractOpps\log.txt"

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>