Drive statistics
Hello,
Is it possible to get HDD total and free space statistics from LISP? Actually I'm looking for a function similar to (dos_chkdsk [drive]) for Windows.
Regards, Vaidas
Rdos_chkdsk <!-- span.hcp1 { font-weight:bold; } span.hcp2 { font-style:italic; } --> dos_chkdsk <!-- span.hcp1 { font-weight:bold; } span.hcp2 { font-style:italic; } -->
Comments
-
Dear Vaidas :-)
I remember to have seen some VLA based Lisp code that uses the "WMI" system object
to retrieve several informations ... that should also offer to retrieve disk apce etc
If necessary, I can send you a small smaple code, incl. the WMI IDL files, so you can
veify which interfaces + methods + proprties are provided by WMI.
Many greetings, Torsten0 -
Hello Torsten!
Can you email me sample codes to vg (at) in-axis.com ? Thank you!
Best regards, Vaidas
0 -
Just sent :-) Greetings ...
0 -
Thank you, Torsten, for your help. It works fine on Windows, but with error on Linux:
; error : no function definition <VLAX-CREATE-OBJECT> at [FUNCTION]
0 -
Dear Vaidas,
indeed, the Lisp engine for linux is not yet complete -
most VLA / VLAX stuff is still missing, but will be implemented
in next ~2 months ...
Only 4 functions will not be available :
vlax-create-object, vlax-get-or-create-object, vlax-import-typelibrary (and 1 more, I just forgot)
The problem is, that we will have a kind of "COM" emulation, but it can only work with
objects from "inside CAD system" ...
thus, we can not create or instantiate other objects outside Bricscad then.
And the WMI is a true Windows specific interface, which is either not available under Linux.
But that points me to an idea - once we will have "COM" Lisp part completed, I could
also start to add DosLib functions into Lisp engine ... and/or ask McNeel, whether they
would like to provide their DosLib code for us (to port to Linux), or whether they would do.
But from other developers as well, there is some demand to have DosLib functions in Linux as well ...
Many greetings, Torsten0 -
Good morning, Torsten
All stuff you just mentioned is very interesting and sure, awaited. DosLib's for Linux idea is very welcome and I believe, lots of LISP developers will be happy if it will be implemented . Thanks for thinking about that and I will wait for your news about this item.
Best regards from one of your fans!
0