java执行CMD命令

package com.lch.swf;

import java.io.IOException;
import java.io.InputStream;

public class CMDJava {

	public static void main(String[] args) throws IOException, InterruptedException {
		
		String cmdStr = "D:\\Program Files\\SWFTools\\pdf2swf.exe  c:\\qqqqq.pdf -o d:\\www.swf -s languagedir=D:\\xpdf\\xpdf-chinese-simplified";
		Runtime rt = Runtime.getRuntime();
		Process process = rt.exec(cmdStr);
	}
}

你可能感兴趣的:(java,C++,c,C#)