Create masses of file

Microsoft Windows xp professional w/serv...
April 19, 2010 at 10:23:34
Specs: Windows XP Pro 32 bit, 2.8GHz P4 w/ HT 1.5G
I am trying to create a script that will "create" a large amount of files each time the script is run.
To give you a background, this script is to stress test a backup appliance the company I work for makes. Through the software, a user is able to define a prescript (batch file only). I would like to make a batch script that would take a directory of photos about 500MB in size and copy them to another directory, but I need to make sure that the journal doesn't see the files as moved or renamed because the backup software looks at the journal to find new/changed files.
Unless the journal marks it as a brand new files, the software won't back it up, it will only backup the changes.
I'm not sure I am making sense, but basically everytime the script runs, i need it to create about 500MB of new data.
Thanks for any help you provide!

See More: Create masses of file

Report •

April 19, 2010 at 11:07:11
I guess another thing that could be done as well is to just "mix up" the data within the file(s). If easier, I could put a 400 or 500MB file on there and just have something that moves the bits around so that the journal sees the files as being modified and the software would then backup the file(s) again.
Thanks again for any insight you provide.

Report •

April 19, 2010 at 11:10:47
If I'm following you, there's already 500M in let's call it c:\old.

@echo off & setLocal EnableDELAYedeXpansion

md d:\new
pushd c:\old

for /f "tokens=* delims= " %%a in ('dir/b/a-d *.jpg') do (
copy "%%a" "d:\new\!random!.jpg"

:: you'll get a little shrinkage

Helping others achieve escape felicity


Report •

Related Solutions

Ask Question