发布网友
共1个回答
热心网友
1、打开wps、txt
String str[] ={"/bin/sh","-c","wps "+path};
Runtime.getRuntime().exec(str);追问是我描述的问题, 我其实是想问像下面这样程序中调用, 下面的在Windows中可以正常使用,但是Linux中却不行. 有没有办法呢?
```
def initialize(encoding = "utf-8")
@excel = WIN32OLE.new("excel.Application")
end
```