batch file not running completely -


i have below batch file

cd c:\batchtest\a\a-app mvn dependency:tree > a.txt cd c:\batchtest\b\b-app mvn dependency:tree > b.txt 

while running giving below output

    c:\batchtest>abcd     c:\batchtest>cd c:\batchtest\a\a-app     c:\batchtest\a\a-app>mvn dependency:tree  1>a.txt     c:\batchtest\a\a-app> 

it not running last 2 commands. missing here?

thanks help.

mvn bat file - so you need invoke call mvn.. :

@echo off cd c:\batchtest\a\a-app call mvn dependency:tree > a.txt cd c:\batchtest\b\b-app call mvn dependency:tree > b.txt 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -