batch-filejpm

bat file programmatically press enter to go next line


When I run following command on cmd it ask me to press enter to continue. when I press enter it show the next thing and so on.we do this when develop/create a new firefox addon using jpm tool.first it show default title if I hit enter it show default name and etc...

command jpm init

here is an snapshot

enter image description here

now I want to make a bat file for this. so it should go to next line like when I press enter .

I tried this. but it doesn't go to next line it show title..and wait..

create.bat

call jpm init
echo 
echo 
echo 
echo 
echo 
echo 
pause

How can I make a bat file for this?


Solution

  • Try this:

    (
    echo/
    echo/
    echo/
    echo/
    echo/
    echo/
    ) | call jpm init
    pause