How can I stop running java program in console ?
Hi , my name is Luck , I will explain :
- I have created java script which execute commands from cmd level
- In java script I'm starting *. bat file which retrieve information from systemexample : hostname > C:\test and then I'd like to load from the fileC:\testthis host nameexample : MyComputer
but the problem is that my script execute reading from the file C:\test before any information will be delivered to this file , how can make a system to wait until bat file will finish doing its task , please , if you know the answer post me back , thank you
[586 byte] By [
Luck1981a] at [2007-10-3 3:01:36]

> I have created java script which execute commands
> from cmd level
I'd be surprised if you did. You probably wrote a Java program. I never heard of Javascript being run from the console.
> - In java script I'm starting *. bat file which
> retrieve information from systemexample :
> hostname > C:\test and then I'd like to
> load from the fileC:\testthis host
> nameexample : MyComputer
?
> but the problem is that my script execute reading
> from the file C:\test before any information will be
> delivered to this file , how can make a system to
> wait until bat file will finish doing its task ,
> please , if you know the answer post me back , thank
> you
What are you talking about? This isn't Java, this isn't Javascript, I have no idea what it is. It's already difficult to understand your problem description.