After-build hook is a reasonable solution, Qiang. You may want to check if the source directory "D: \cordovaWorkSpace\MyApp\platforms\android\build\outputs\apk\android-debug.apk". It seems there is a space between "D:" and "\". Another possible cause would be the permission issue on the target directory " C:\Users\Administrator\Desktop\myApp.apk" Enjoy.
Byoungro So SSG / DPD / Mobile Computing and Compilers Intel Corporation -----Original Message----- From: Steven Gill [mailto:stevengil...@gmail.com] Sent: Wednesday, February 24, 2016 11:56 AM To: dev@cordova.apache.org Subject: Re: Ask for advice about 'cordova build' command Hey! Why not use a after_build hook instead? http://cordova.apache.org/docs/en/latest/guide/appdev/hooks/index.html On Wed, Feb 24, 2016 at 11:04 AM, Raphael Bircher <rbircherapa...@gmail.com> wrote: > Hi > > I remember that we have had a similar issue on a other project > (OpenOffice Testtool) The only solution was to switch to VBA. As I > know the Batch interpreter has issues with external processes. > > Have a nice day > Raphael > > On Wed, Feb 24, 2016 at 11:54 AM, QiangOffice > <qiangoff...@office2016.cc> > wrote: > > Hi Sir, > > I have used cordova develop my app for five months, thank you > > support > this nice framework for us. > > For convenience, I wrote a batch file to build app automatically, > > but > there is a catch, after the 'cordova build' command executed, the > batch will end, commands which after 'cordova build' line cannot be > executed, so what can I do to solve this problem? > > Below is my batch file: > > d: > > cd cordovaWorkSpace\MyApp > > cordova build > > copy /y D: \cordovaWorkSpace\MyApp > \platforms\android\build\outputs\apk\android-debug.apk > C:\Users\Administrator\Desktop\myApp.apk > > > > The last line can never be executed because after the 'cordova build' > executed, the cmd window will exit. So please tell me a way to solve > this problem. > > > > Thanks > > > > Name:Qiang > > Email:qiangoff...@office2016.cc > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org > For additional commands, e-mail: dev-h...@cordova.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org