You could do something like:
from java.lang import Runtime
runtime = Runtime.getRuntime()
> -----Original Message-----
> From: Yang Wang [mailto:ywang@...]
> Sent: Friday, February 08, 2002 4:24 PM
> To: jython-users@...
> Subject: [Jython-users] start a Window2K program in a separate window
> and back to Jython
> Hi All,
> I am trying to use os.system("start mine.bat") to start a program in a
> separate window. But the problem is that the control remains
> in the new
> window and did not go back to the Jython window at all. Until I exit
> the "mine.bat", the prompt in Jython began to show up.
> Did I use the right command to do this? I looked at other Python
> commands such as os.execl() but when I try it on Jython, it would say
> that "AttributeError: class 'org.python.modules.os' has no attribute
> Thanks in advance!
> Jython-users mailing list
Get latest updates about Open Source Projects, Conferences and News.