Re: JAVA有没有象C中SYSTEM那样的METHOD?# Java - 爪哇娇娃
r*s
1 楼
谢谢你.我发现用法如下:
NT:
Runtime.getRuntime().exec("cmd /c " + "copy c:\\temp\papaya.txt .");
(It won't work without "cmd /c")
Solaris:
Runtime.getRuntime().exec("cp /tmp/papay.txt .");)
NT:
Runtime.getRuntime().exec("cmd /c " + "copy c:\\temp\papaya.txt .");
(It won't work without "cmd /c")
Solaris:
Runtime.getRuntime().exec("cp /tmp/papay.txt .");)