Program to Create a large temporary file.

H

Harvey Colwell

We've all seen those old install programs that can't handle large disk
drives, they return negative free disk space value. Usually you just get the
latest version of the program. But I've got some programs that are never
going to be upgraded and I still need to install them on a new(er) PC. I was
going to start by trying to fill up the disk drive with a large temporary
file. I seen several post talking about it, but I can't find any reference
to an actual program that can do this.

Does anyone know where I can find such a program. Or is there another
work-a-round for the above problem.

BTW: I was also toying with the ideal of creating a small (< 2 MB) partition
and trying to install to it.

TIA


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Harvey Colwell --- SDS, Inc
Web: http://www.sds400.com/
Tel: (217) 347-5242 Ext 14
Eml: (e-mail address removed)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
A

Andrew Graham

Harvey Colwell wrote:
....
I was going to start by trying to fill up the disk
drive with a large temporary file. I seen several post talking about
it, but I can't find any reference to an actual program that can do
this.

Does anyone know where I can find such a program. Or is there another
work-a-round for the above problem.

Create a 1MB file:
fsutil file createnew big.file 1000000

Create a 1GB file:
fsutil file createnew bigger.file 1000000000

Tested under XP. I don't know if fsutil is available under NT2K

Andrew Graham
 
C

Clay Calvert

We've all seen those old install programs that can't handle large disk
drives, they return negative free disk space value. Usually you just get the
latest version of the program. But I've got some programs that are never
going to be upgraded and I still need to install them on a new(er) PC. I was
going to start by trying to fill up the disk drive with a large temporary
file. I seen several post talking about it, but I can't find any reference
to an actual program that can do this.

Does anyone know where I can find such a program. Or is there another
work-a-round for the above problem.

I've used the following to create a file 1 Gigabyte in size. Note
that all of the lines with "+ T" are actually one very long line.

@ECHO OFF>M
::
:: Only works in NT4, or higher, with command extensions enabled.
::
:: This batch file will create two files. One file, named "G" is exactly one Gigabyte.
:: The true size of a Gigabyte is 1,073,741,824
:: The other file, named "M" is exactly one Megabyte in size, which is 1,048,576 bytes.
:: This batch file should be a true Kilobyte in size, which is 1,024 bytes.
::
for /l %%m in (1,1,1024) do copy /b M + %~fsx0>nul
::
copy /b M + M + M + M + M + M + M + M + M + M T
::
copy /b T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T
+ T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T +
T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T
+ T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T +
T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T
+ T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + T + M +
M + M + M G
::
if exist T del /q T
::
:: Padding to make this file exactly 1,024 Bytes in size.

Clay Calvert
(e-mail address removed)
Replace "W" with "L"
 

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