Solved

Novell Volumes Size and Free Space

Posted on 1998-08-17
1
137 Views
Last Modified: 2010-04-30
How can I get information about any volume in Novell Server
to My VB application ?

Thanks,
Asaf Lustig
0
Comment
Question by:systafl
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 50 total points
ID: 1429289
Quick and dirty method is to use SHELL command to fire NDIR command with output redirected to a file. This will give you a plain ASCII file that you can scan for info as required:

Syntax will be similar to:

SHELL ("NDIR /SPA /C > ASCII.TXT", 1)
.
OPEN "ASCII.TXT" FOR INPUT AS #1
    DO WHILE NOT EOF(1)
    LINE INPUT #1, TEXT$
    IF INSTR(TEXT$, "what you're looking for") then
     ...
    ENDIF
    ...
    LOOP
'
CLOSE #1

I'm sure that there's an API or process that you could use, but this method works well and can be generalized to work with most any type of command or OS. If you were on NT then the difference would be that NDIR... would be NET... and the search string in the INSTR would be different.

You could also use a variable for the server/volume name in the above if you needed to poll several serves/volumes.

M


0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now