WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

DiskSize Limit

Keywords:   DiskSize limit  hugemath

Question:

We are using DiskFree and DiskSize functions to find the disk free, but we are not able to find the currect value once it reaches 2GB limit. Is there any other way we can find this.. Most of my boxex have space more than 800GB. Please help.

Answer:

Hmmm. Kind of depends on several factors.

What version of Winbatch do you have?

What version of Windows are you running?

What kind of OS is on the mapped drive?

What is the problem? Is the problem that you cannot get back a number larger than about 2GB? Or is the problem that a number larger than about 2GB comes in floating point format.

Basically many older OS's limited the maximum size returned to 2GB. This can happen on either the client or server side.

Old versions of Winbatch are also limited the maximum value to 2 GB.

Newer versions returned numbers larger than 2GB as a floating point number.

Recent version of WinBatch provide you with a flag so that you can get the exact size by requesting a "huge number string" that gives a high-precision decimal number by using an option flag value.

WinBatch 2002G (the curent version) is a free-for-the-download upgrade from 2001h

See our download page. When you dwonload and install the, the new help file will show the new parameters. Something like...

Syntax:

DiskSize(drive-list [, format])

Parameters:

(s) drive-list one or more drive letters, separated by "|",
    or the current file delimiter (usually a tab).
(i) format This controls the format in which the size is returned if
    it is too large to be returned as an integer. The default
    format, 0, is floating point. If you specify "format" of 1,
    the size will be returned as a huge number.


Note that you view the huge_number returned when you select the hude number option, but you cannot do math on it without going through the huge math extender. You must treat it like a string, not a number.
Article ID:   W15148
File Created: 2002:09:05:13:50:04
Last Updated: 2002:09:05:13:50:04