would you like to download a 580MB dummy file? they are up somewhere...

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Viper GTS

Lifer
Oct 13, 1999
38,107
433
136
Make it write a larger of bytes in each pass. For example:

Dim objFSO, objTextFile, intHowBig
intHowBig = CInt(InputBox("How large of a file do you want to make (in MB)?"))
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile(".\dummyfile.txt")
For i = 0 to ((1024 * intHowBig) * 64)
objTextFile.Write("0101010101010101")
Next
Set objTextFile = Nothing
Set objFSO = Nothing
MsgBox("Done.")


Will run twice as fast as:

Dim objFSO, objTextFile, intHowBig
intHowBig = CInt(InputBox("How large of a file do you want to make (in MB)?"))
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile(".\dummyfile.txt")
For i = 0 to ((1024 * intHowBig) * 128)
objTextFile.Write("01010101")
Next
Set objTextFile = Nothing
Set objFSO = Nothing
MsgBox("Done.")


Viper GTS
 

SLEEPER5555

Golden Member
Aug 16, 2000
1,597
0
0
ok i used this and it is basically instant for 10 megs!

Dim objFSO, objTextFile, intHowBig
intHowBig = CInt(InputBox("How large of a file do you want to make (in MB)?"))
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile(".\dummyfile.txt")
For i = 0 to ((1024 * intHowBig) * 32)
objTextFile.Write("01010101010101010101010101010101")
Next
Set objTextFile = Nothing
Set objFSO = Nothing
MsgBox("Done.")
 

Viper GTS

Lifer
Oct 13, 1999
38,107
433
136
This works even faster:

Dim objFSO, objTextFile, intHowBig
intHowBig = CInt(InputBox("How large of a file do you want to make (in MB)?"))
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile(".\dummyfile.txt")
For i = 0 to ((1024 * intHowBig))
objTextFile.Write("0101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101010101010101010
101010101010101010101010101010101010101010101010101")
Next
Set objTextFile = Nothing
Set objFSO = Nothing
MsgBox("Done.")


It's actually quite fast, requiring only 737,280 passes for a 720 MB file of alternating 0's and 1's.

:)

Dammit, sorry... Gotta take out the hard returns, I had to put them in so it didn't eff everything up.

On my P3 system here at work it produces a 100 MB file in 12 seconds. Not too shabby.

Viper GTS
 

SLEEPER5555

Golden Member
Aug 16, 2000
1,597
0
0
ok viper it should be noted that your last script requires all the 010101010 to stay on one line! I am correct right?
That took about 4 seconds to do a 100mb file on my 1 gig duron! You rule VIPER!
 

SLEEPER5555

Golden Member
Aug 16, 2000
1,597
0
0
peto - what is that file without me having to D/l it? I am wondering why that is so easier. this script just jamms and it can do what ever size you want! am i missing somthing in that D/L? I just don't like to D/L anything that i do not know what it is!
 

Viper GTS

Lifer
Oct 13, 1999
38,107
433
136
Yes, you need to edit out the hard returns. I originally posted it with them all on one line, but it screwed up the thread viewing.

Viper GTS
 

peto

Senior member
Jul 26, 2001
807
0
0


<< peto - what is that file without me having to D/l it? I am wondering why that is so easier. this script just jamms and it can do what ever size you want! am i missing somthing in that D/L? I just don't like to D/L anything that i do not know what it is! >>


It's a dummy file maker that's supposed to be used for copying DC games. Also, it's an executable and you don't need to mess around with windows scripting host. Plus it has a super neato timer. Took me 3 seconds to make 100 MB file on Athlon 1.4 GHz. Only 5KB so why not.
 

Jerboy

Banned
Oct 27, 2001
5,190
0
0
I like the program peto gave linked to. A complete control of file size byte by byte would be nice though. I want make one that is 531,552,730 bytes


Even better would be functional .iso file that can actually be recorded to a CD in same manner as real stuff but burns a setup.exe program that displays "Thank you for your unauthorized downloading, placebo file for you teeheee hahaha" with some cute animation. This is meant for hardcore downloader that will download from your computer no matter how many times you tell him to f off.





 

peto

Senior member
Jul 26, 2001
807
0
0


<< Even better would be functional .iso file that can actually be recorded to a CD in same manner as real stuff but burns a setup.exe program that displays "Thank you for your unauthorized downloading, placebo file for you teeheee hahaha" with some cute animation. This is meant for hardcore downloader that will download from your computer no matter how many times you tell him to f off. >>

Ummm.... why not just put him in your ignore list?
 

Jerboy

Banned
Oct 27, 2001
5,190
0
0


<<

<< Even better would be functional .iso file that can actually be recorded to a CD in same manner as real stuff but burns a setup.exe program that displays "Thank you for your unauthorized downloading, placebo file for you teeheee hahaha" with some cute animation. This is meant for hardcore downloader that will download from your computer no matter how many times you tell him to f off. >>

Ummm.... why not just put him in your ignore list?
>>




but he deserves to download a dummy for being totally disrepectful by not even listening to me when I tell him what he can and can't download from me.

 

Beau

Lifer
Jun 25, 2001
17,730
0
76
www.beauscott.com


<< I like the program peto gave linked to. A complete control of file size byte by byte would be nice though. I want make one that is 531,552,730 bytes Even better would be functional .iso file that can actually be recorded to a CD in same manner as real stuff but burns a setup.exe program that displays "Thank you for your unauthorized downloading, placebo file for you teeheee hahaha" with some cute animation. This is meant for hardcore downloader that will download from your computer no matter how many times you tell him to f off. >>





The script that I wrote will do this, just take the CInt command off and devide 531552730 by 1024 (519094.462890625) and enter it when it asks you for how large of a file you want.
 

yllus

Elite Member & Lifer
Aug 20, 2000
20,577
432
126
Here's the link to the file: Resize.exe

Make a textfile with a few characters, and then add purely blank spaces to the end of the file. PKZip and other compression programs will treat those blank spaces alike and compress the file HUGELY down.

Up for a limited time only. Here's the documentation:

RESIZE is a file resizer: it lets you alter the size of an
existing file, either making it larger or smaller. RESIZE may be
invoked in several different ways. If the first parameter is "-r" then
random byte filling is used (if the file size is being increased then
the extra space is padded with random bytes); otherwise blanks are used
as padding. The other parameter, besides file name(s) is the size
variation. This may be either relative or absolute. To modify a file's
size absolutely, you just give a number; the file's size is then
changed to that number. If you want the size to be relative, then you
give the size of the change (in bytes), preceded by either a "+" (to
make the file bigger) or "-" (to decrease it by the same amount). The
remaining parameters are file names, wildcards allowed. Note that if
you elect to make a file smaller, then the excess data will be forever
lost, so don't go around trimming things without good cause thinking
that you'll be saving disk space or something idiotic like that. If you
do you'll deserve it.
 

Jerboy

Banned
Oct 27, 2001
5,190
0
0
Okay turns out that most people downloads about 10% of the way, then disconnects. I guess they have some way of detecting its a lemon or placebo. How do I go about making something thats undetectable? I'm thinking of something along keeping the first few megabytes of data the same as original and fill the rest with placebo. I really don't know how to do it though.
 

Jerboy

Banned
Oct 27, 2001
5,190
0
0
So anyone downloaded a 580MB ISO image that burns a data CD containing a wav file with sound of rain or 512,242,xxx byte file that is filled with zeroes?

Those are mine :D
 

hevnsnt

Lifer
Mar 18, 2000
10,868
1
0
anyone from the old bbs days remember when we used to do this to crash a bbs that we didnt like? :)

They had virus scanners / description adders that would run as soon as you uploaded a file to the bbs, so if you wanted to take down a bbs, you would get a ~700 meg file (that was ALOT then) and compress it down to a couple megs, then when the bbs tried to open it to process it, boom, bbs crashed. :)