當我在Mac OS上運行這樣的代碼:在Java中使用本地應用程序在遠程計算機上打開PDF文件?
Runtime.getRuntime.exec("open testFile.pdf");
Mac OS的運行Acrobat中打開本地的PDF文件。
如何在文件位於遠程計算機上時執行此操作?
\\remoteHost\share\testFile.pdf
我嘗試這樣做,是這樣的:
Runtime.getRuntime.exec("open \\\\remoteHost\\share\\testFile.pdf");
,但我失敗了。
謝謝!
您是否嘗試過使用'Runtime.getRuntime.exec(「open \\\\ remoteHost \\ share \\ testFile.pdf」);' –