/**
 * wrapper for Runtime.exec.
 * You will not see the console output of the spawned command.
 * To see it too, you would need the 4NT tee command.
 * @param command fully qualified *.exe or *.com command
 * @see exec, shell, command, cmd, forDOS, forNT
 */
public static Process exec (String command, boolean wait)
   {
   Process p;
   try
      {
      p = Runtime.getRuntime().exec (command);
      }
   catch ( IOException e )
      {
      return null;
      }if ( wait )
      {
      try
         {
         p.waitFor();
         }
      catch ( InterruptedException e )
         {
         Thread.currentThread().interrupt();
         }
      } // end if // You must close these fool things even if you never use them!
   p.getInputStream().close();
   p.getOutputStream().close();
   p.getErrorStream().close();
   return p;
   } // end exec

