|
From: Humbel O. <Otm...@bi...> - 2002-01-08 13:33:06
|
Hello, With the newest jython version, you should be able to say: import os os.system( 'my.exe argument1 argument2' ) You might have to use quoting for arguments containing blanks. Here is a very simple example that works for me (Win2K): [E:/jython/jython-21] jython Jython 2.1 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import os >>> os.system( 'notepad.exe' ) 0 >>> os.system( 'notepad.exe temp.txt' ) 0=09 >>> os.system( 'notepad.exe "temp file.txt"' ) 0 >>>=20 Hope this helps a little, Oti. [ Schmidt, Dietrich ] =20 > I want to run a user written WNT 4.0 EXE file with a command=20 > line argument > from within a JPython script. How can I do this ? |