KG 发帖数: 515 | 1 Seems like the only way to do it is to write some JNI class to do it. Any
built-in API call? It needs to support both Mac and Win. |
g*s 发帖数: 2277 | 2
you can parse output from Runtime.exec("dir") (or command to get free disk
info in Mac) if you can't get such info by System.getProperty.
【在 KG 的大作中提到】 : Seems like the only way to do it is to write some JNI class to do it. Any : built-in API call? It needs to support both Mac and Win.
|
KG 发帖数: 515 | 3 That doesn't sound very pretty. Besides, there probably isn't such a thing on
Mac.
【在 g*s 的大作中提到】 : : you can parse output from Runtime.exec("dir") (or command to get free disk : info in Mac) if you can't get such info by System.getProperty.
|
m******t 发帖数: 2416 | 4
Well, duh - maybe that's why you can't do it in Java. 8-)
(But I wonder there's got to be a way to do this in Mac now that
OS X is really just UNIX)
【在 KG 的大作中提到】 : That doesn't sound very pretty. Besides, there probably isn't such a thing on : Mac.
|
KG 发帖数: 515 | 5 on OS9, probably an apple script, or a native function call. But I don't want to
go there. A little lazy :-<
【在 m******t 的大作中提到】 : : Well, duh - maybe that's why you can't do it in Java. 8-) : (But I wonder there's got to be a way to do this in Mac now that : OS X is really just UNIX)
|