From: O'Brien-Strain, E. <eo...@ex...> - 2002-02-09 01:17:14
|
You could do something like: from java.lang import Runtime runtime = Runtime.getRuntime() runtime.exec("start mine.bat") __ Eamonn O'Brien-Strain HP Labs eo...@hp... > -----Original Message----- > From: Yang Wang [mailto:yw...@pr...] > Sent: Friday, February 08, 2002 4:24 PM > To: jyt...@li... > 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 > 'execl'". > > Thanks in advance! > Yang > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |