Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMD closes after calling cordova command

I want to write a batch file which creates a release apk for my ionic projects.

  • copy the project folder to release folder -> works
  • change directory --> works
  • execute: "cordova plugin rm cordova-plugin-console" --> Works but CMD window closes after that.

    XCOPY %project% %release% /S /E /C /H /O /R /Y /D /V
    
    cd %release%
    
    cordova plugin rm cordova-plugin-console
    -- exits the window after this command --
    
    cordova build --release android
    

Any idea about that?

like image 277
Mariano Schmands Avatar asked Sep 05 '25 03:09

Mariano Schmands


1 Answers

found the answer in a phonegap thread Return control from external command to a batch file

command is:

call cordova plugin rm cordova-plugin-console
...
like image 131
Mariano Schmands Avatar answered Sep 07 '25 22:09

Mariano Schmands