• Post Reply Bookmark Topic Watch Topic
  • New Topic

thread pause after calling a batch file

 
thilakk kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Frends
I need to call a batch file from a program , and at the same time i need to call the batch file and the program shud stop execution.
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thilakk:the program shud stop execution.

Or should not stop execution?
How are you executing the batch file?
If you are using Process, then there is a waitFor() method in that class that can be of help to you. Try it out.
[ February 26, 2008: Message edited by: Nitesh Kant ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!