【发布时间】:2010-10-19 22:14:22
【问题描述】:
我有一张图片,我想用 windows Picutre 和 Fax Viewer 打开。你是怎样做的?我能够使用我知道 exe 文件的 mspaint 打开它。代码如下:
File imageFile = new File("filepath" + System.currentTimeMillis()+".png");
ImageIO.write(printImg, "PNG", imageFile);
String application = "mspaint.exe";
Runtime.getRuntime().exec(application + " \"" + imageFile.getAbsolutePath()+"\"");
有人知道 Windows 图片和传真查看器的 exe 吗?
【问题讨论】: