Solved

Novell Volumes Size and Free Space

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

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

724 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