>> I have the requirement ( don't ask why ) to transfer a 20Gb file via low-level code. <<
Sorry, I have to ask "Why?" because that is the source of all of your problems, and if you can explain why you are trying to do it this way, we can probably come up with some alternatives. If you can't tell us why, the answer is easy: it can't be done.
Have you considered COPY FILE <filename> TO <destination>?
Note that you are restricted to NTFS and non-Microsoft file systems with a file this big - FAT32 is limited to 4 gigabytes.
©2003 Ted Roche |