Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

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

  1. #1
    Join Date
    Nov 2013
    Posts
    14

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

    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"

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Just remove the start command when executing kitchen.
    So long, and thanks for all the fish.

  3. #3
    Join Date
    Nov 2013
    Posts
    14

    Default

    HI Marabu

    Thank you, for helping me out on this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.