The Artima Developer Community
Sponsored Link

Java Answers Forum
Available Disk Space !

3 replies on 1 page. Most recent reply: Aug 1, 2002 10:28 PM by Jonathan Paul

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Charly

Posts: 2
Nickname: charlyg
Registered: Jul, 2002

Available Disk Space ! Posted: Jul 31, 2002 7:54 AM
Reply to this message Reply
Advertisement
Hi,

How can I know the available disk space on some specific device(in bytes) ?
I would like to use just java commands without accessing a dll or system functions.

THANKS A LOT !


Don Hill

Posts: 70
Nickname: ssswdon
Registered: Jul, 2002

Re: Available Disk Space ! Posted: Jul 31, 2002 9:40 AM
Reply to this message Reply
> Hi,
>
> How can I know the available disk space on some
> specific device(in bytes) ?
> I would like to use just java commands without
> accessing a dll or system functions.
>
> THANKS A LOT !

I don't think this can be done without native code, you could take a look at cygwin and then do so something like this

df | grep | awk.exe '{print $4}'


there is also a tool called Jconfig at
http://www.tolstoy.com/samizdat/jconfig.html
that may help

HTH

Charly

Posts: 2
Nickname: charlyg
Registered: Jul, 2002

Re: Available Disk Space ! Posted: Aug 1, 2002 5:54 AM
Reply to this message Reply
Thanks Don !
I have done a DLL using C and native code and it works fine.

Thanks again.
Charly.

Jonathan Paul

Posts: 5
Nickname: jona
Registered: Jul, 2002

Re: Available Disk Space ! Posted: Aug 1, 2002 10:28 PM
Reply to this message Reply
plz send me the code ................
thanks alot ...........

cheebz@hotmail.com
------------------

Flat View: This topic has 3 replies on 1 page
Topic: JOptionPane  - conflict with exception handling? Previous Topic   Next Topic Topic: Hello guys :)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use