create a zero-filled file larger than 4 GB

T

Thomas Finninger

for testing purposes i have to create a (zero-filled) file larger than
4 GB

i tried creatfil.exe from the win2000 resource kit ... but it does not
accept filesizes larger than 4 GB ...

is there any (freeware) tool available ?
 
P

Phil Robyn

Thomas said:
for testing purposes i have to create a (zero-filled) file larger than
4 GB

i tried creatfil.exe from the win2000 resource kit ... but it does not
accept filesizes larger than 4 GB ...

is there any (freeware) tool available ?

How *much* larger than 4GB? Why not simply create two 3GB files and
concatenate them?
 
D

Dean Wells [MVP]

Thomas said:
for testing purposes i have to create a (zero-filled) file larger than
4 GB

i tried creatfil.exe from the win2000 resource kit ... but it does not
accept filesizes larger than 4 GB ...

is there any (freeware) tool available ?

XP/2003 support a tool named FSUTIL -

C:\>fsutil file createnew c:\test.txt 7000000000

.... will create a 7GB file sparse file.

Short of that, I would suggest creating 2 files of 4GB and concatenating
them per Phil's suggestion.

C:\>copy file1.txt+file2.txt bigfile.txt

HTH

Dean
 
H

Helge Wunderlich

How *much* larger than 4GB? Why not simply create two 3GB files and
concatenate them?

Or even concatenate the one file with itself?

copy big.fil+big.fil bigger.fil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top