Board index » delphi » max size of a file under win9x/NT?

max size of a file under win9x/NT?

I'm aware that the size of a volume can be well in excess of 2Gb but is there a limit on file
size never-the-less?

I'm hoping to avoid having to convert my prog to floating point (my language doesn't
have unsigned 32bit integers or bigger integers).

--

Greg Lorriman co. inc. & sons Ltd

 

Re:max size of a file under win9x/NT?


If I remember correctly, there is a 2GB limit under 95 on local drives.
On network drives and under NT (NTFS) I think the limit is free space on
the drive.

Quote
Greg Lorriman wrote:

> I'm aware that the size of a volume can be well in excess of 2Gb but is there a limit on file
> size never-the-less?

> I'm hoping to avoid having to convert my prog to floating point (my language doesn't
> have unsigned 32bit integers or bigger integers).

> --

> Greg Lorriman co. inc. & sons Ltd

--

<<<<<<------------->>>>>>>
Eivind Bakkestuen was here
           ***
"I was the second gunman
 on the grassy knoll."

Re:max size of a file under win9x/NT?


Quote
Greg Lorriman wrote in message <84660119...@lorriman.demon.co.uk>...
>I'm aware that the size of a volume can be well in excess of 2Gb but is

there a limit on file

Quote
>size never-the-less?

Depends on the file system. The Win32 API supports a 64 bit file position,
meaning it passes a 64 bit number to the (network or file system) - driver.
If the driver does not narrow this number down, your file has a maximum size
of approx 16000 ExaByte.
Even the Windows 3.1 _llSeek API suggests this maximum!

But usually, the number is narrowed down:
Old BIOS-es only allowed partitions up to 512 MB
FAT allows partitions up to 2 GB
etc.
Good thing is, when the industry reaches this number, new file systems,
BIOS-es etc. will emerge, and you don't have to change your program.

--
Zweitze de Vries
Zweitze.at.iname.com
When replying, please adjust return address

Other Threads