如何打开CMD并获得目录与Java代码?
我已经试过了:
Runtime.getRuntime().exec("Cmd.exe /c C/Users/me/Desktop/myFile")
使用Desktop
class:
Desktop.getDesktop().open(new File("C:\UsersmeDesktopmyFolder"));