Date – 10/07
Affected Product & Version – n/a
Affected Module & Version - n/a
OS Version – Windows 2000 & 2003
Application Information – n/a
Description:
A guy I went to University with ported DD to Windows and put it under GPL. His DD has a ‘random’ device file, allowing us to create random data files to use in testing.
Extract the DD.zip file into a directory, and create a batch file in the same directory similar to the one below.
It will create 20 directories in c:\randomdata, filled with 500 files of 2x1MB blocks each, for a total of 20GB of random data.
-
@echo off
set /a dircount = 1
:createdirs
set /a filecount = 1
mkdir "c:\randomdata\%dircount%"
:createfiles
dd bs=1M count=2 if=/dev/random of="c:\\randomdata\%dircount%\file%filecount%.dat"
set /a filecount = "%filecount%+1"
echo %dircount% %filecount%
if NOT %filecount% == 501 goto createfiles
set /a dircount = "%dircount%+1"