Redian新闻
>
how to find out free disk space
avatar
how to find out free disk space# Java - 爪哇娇娃
a*6
1
记得CNN在大选时曾经直播显示human meter,不知道是否指这个意思。
avatar
KG
2
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.
avatar
r*2
3
publicity?
avatar
g*s
4

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.

avatar
I*t
5
popularity
avatar
KG
6
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.

avatar
m*t
7

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.

avatar
KG
8
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)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。