codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  get disk space ..  sam_02 at 02:17 on Monday, March 05, 2007
 

i was thinking of how to get the size of a disk, along with the free and used memory..
for example C:

so far I think, i'll need to do a recursive call to get all files in the root and its sub-roots, and calculate the size of all files.. ??

is this correct or is there an easier way?

for the recursive call, i found this, http://snippets.dzone.com/posts/show/1875, but i get an error..

any help ?

  Re: get disk space ..  sam_02 at 06:57 on Monday, March 05, 2007
 

i got a better way for the recursive, and i calculate the total file size..

but i get a different total size then when i go to the dive , right click and click properties..

but then i when in the drive, highlighted all the files and folders, right click , then properties and is the same as my java program..

my current way does not calculate all the junk, in the sector of the drive,,,

ideas?








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007