?
Solved

Novell Volumes Size and Free Space

Posted on 1998-08-17
1
Medium Priority
?
146 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 150 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

762 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