A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Java in General
how to run a .bat file from java program.
Joined: Oct 21, 2008
Jun 06, 2011 01:14:49
A .bat file will be running in the system. If the bat file is not running, i want to run it from my
program. my problem here is how to detect whether the .bat file is runninf or not??
Pavan Kumar Dittakavi
Joined: Feb 12, 2011
Jun 06, 2011 06:03:53
I Googled and I could fin this method "window.enumerateProcess". Apparently this returns the handles of all currently running processes!..may be you could check on this
Joined: Sep 28, 2004
Jun 06, 2011 07:43:05
Instead of going to the Windows API, which will require that you go through something like JNI, it may be easier just to use runtime exec, and call the windows "tasklist" command.
Java Threads, 3rd Edition
Jini in a Nutshell
Java Gems (contributor)
subject: how to run a .bat file from java program.
How to make exe in JBuilder 3 Professional
'.dat' file Question.
run bat file within java
How to make exe file?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014