We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Send commands to dos
Page Index Toggle Pages: 1
Send commands to dos (Read 326 times)
Send commands to dos
Jun 17th, 2008, 4:55pm
 
Hi everyone.  I'm looking for a way to issue commands to the dos command line inside of processing.  Is there a simple way to accomplish this?  Thanks very much.
Re: Send commands to dos
Reply #1 - Jun 17th, 2008, 5:19pm
 
I used this to open ffmpeg in processing, it's a java fonction, this can perhaps help you. I don't know if it's only to open .exe or other things.

import java.io.*;

try{
             Runtime runtime = Runtime.getRuntime();
             Process proc = runtime.exec(
               "C:/Users/WhereArt/ffmpeg.exe" );//dos command
           }catch(Exception e){
             print(e);
           }
Re: Send commands to dos
Reply #2 - Jun 18th, 2008, 3:15am
 
http://processing.org/reference/open_.html
Page Index Toggle Pages: 1