Solved

Novell Volumes Size and Free Space

Posted on 1998-08-17
1
135 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 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