0

I wrote a batch file and key in as follow:

weinre --httpPort 8181 --boundHost 192.168.1.110

I supposed it will start up a cmd and run only once, then show the message as follow and wait:

2013-06-05T10:50:40.636Z weinre: starting server at http://192.168.1.51:8181
_

But in fact it just kept running without stop.

this is my first time trying to write a batch file, how should I fix it?

1 Answers1

3

Try this:

@echo off
start "" weinre --httpPort 8181 --boundHost 192.168.1.110
exit
foxidrive
  • 40,353
  • 10
  • 53
  • 68
  • Thanks for your answer, but it don't work for me. It will keep startup a new window and shut itself down immediately. – Charlie Liu Jun 06 '13 at 01:53
  • You may not be aware that opening a new window and closing it is normal - the server should still be running though. – foxidrive Jun 06 '13 at 10:02
  • Your batch is totally not working at all. It just repeatedly open new command window and shutdown itself. The weinre is not running by your batch and PC become unusable by endless new command window. The only way to escape is to log off or restart PC. – user1995781 Nov 02 '13 at 02:21
  • 3
    I'm pretty sure that you called the batch file `weinre` so it was starting itself again and again. – foxidrive Nov 02 '13 at 02:25