![]() Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums |
|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() ![]() |
| blueshogun96 |
May 20 2004, 03:26 PM
Post
#1
|
![]() X-S X-perience ![]() ![]() Group: Members Posts: 328 Joined: 24-March 04 Member No.: 109566 |
I've noticed that most of you still just collect huge movie files to use as dummy files. Well here's a much better way to do this. Instead of making a dummy file from large files already on your computer, write a program that writes text to a file in a continuous loop and and program some logic to make it stop at a certain time. I discovered i could do this last night by mistake. A text file can fill up QUICK and become MASSIVE in a few seconds (like putting a dry sponge in water
#define WIN32_LEAN_AND_MEAN #include <stdio.h> #include <conio.h> //our constants const __int64 SIZE_IN_BYTES = 1; const __int64 SIZE_IN_KILOBYTES =1024; const __int64 SIZE_IN_MEGABYTES =1048576; void main(int argc, char* argv) { FILE *pFile;//our file int TargetSize=0;//size we want int s=1; pFile=fopen("0dummy.bin","a+");//create dummy file printf("Dummy file maker 1.1 by blueshogun96 © 2004\n\n"); printf("In order to make the dummy file, you must specify what units the number you \ninput will be\n"); printf("For instance, you type in the size you want, are you using KB, MB, etc.\n\n\n"); menu: printf("Input size in:\n1. Bytes\n2. KiloBytes\n3. MegaBytes\n"); scanf("%d",&s); if(s<1||s>3) { system("CLS"); printf("Please choose a number between 1 and 3\n"); goto menu; } printf("How big do you want your dummy file to be"); if(s==1)printf("(in Bytes)"); if(s==2)printf("(in KiloBytes)"); if(s==3)printf("(in MegaBytes)"); scanf("%d",&TargetSize); printf("Creating your dummy file...\n"); printf("You can stop at anytime by pressing CTRL+C\n"); printf("This program will be done before you know it \n"); printf("Don't leave this unattended just in case!"); printf("Target size is: %d",TargetSize); if(s==1)printf("(in Bytes)\n"); if(s==2)printf("(in KiloBytes)\n"); if(s==3)printf("(in MegaBytes)\n"); for(;;) { static __int64 i=0; i+=1; fprintf(pFile,"."); //uncomment the line below and the program will go much slower //printf("Dummy file size is %d bytes.\r",i); if(s==1) if(i==(__int64)TargetSize) break; if(s==2) if(i==(__int64)TargetSize*SIZE_IN_KILOBYTES) break; if(s==3) if(i==(__int64)TargetSize*SIZE_IN_MEGABYTES) break; }//when its done it will stop and let you know printf("\nYour dummy file is done\n"); getch();//wait for keyboard input fclose(pFile);//close file } if you don't have a compiler or don't know how to program, you can download a precompiled copy below: http://www.angelfire.com/extreme4/raditzmo...myFileMaker.rar This post has been edited by blueshogun96: May 20 2004, 03:31 PM |
| Chancer |
May 20 2004, 03:47 PM
Post
#2
|
![]() Don't You Trust me? ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Moderator Posts: 18687 Joined: 31-October 03 Member No.: 71217 Xbox Version: v1.6 360 version: v3.0 (falcon) |
Very good but its easier to use the dummy file maker from the Xecuter site. I don't really think people do spend a lot of time amking up dummy files surely. You can make a dummy of a couple of hundred meg or whatever in less than 30 secs.
|
| blueshogun96 |
May 20 2004, 04:08 PM
Post
#3
|
||
![]() X-S X-perience ![]() ![]() Group: Members Posts: 328 Joined: 24-March 04 Member No.: 109566 |
Sorry, I didn't know that because I didn't know a dummy file maker existed. The main reason why I posted this thread was because everyone I've met did it the hard way, I just wanted to help, that's all. This post has been edited by blueshogun96: May 20 2004, 04:24 PM |
||
| rainfever |
May 20 2004, 04:40 PM
Post
#4
|
|
X-S Young Member ![]() Group: Members Posts: 45 Joined: 27-February 04 Member No.: 103046 |
i just used a 100mb file and renamed it ABC.FAO and it worked like a charm....dunno why it so hard to make a dummy file....probably something to do with the name lol
|
| blueshogun96 |
May 20 2004, 04:49 PM
Post
#5
|
||
![]() X-S X-perience ![]() ![]() Group: Members Posts: 328 Joined: 24-March 04 Member No.: 109566 |
I think you're missing the point of exactly why I made this post. It's not all about creating a dummy file, it's about getting it to the right size so you only need to make one and only one, instead of gathering a bunch of files and wasting time. Of course it's not hard to make a dummy file, it's all about being presice and accurate! |
||
| lordvader129 |
May 20 2004, 05:04 PM
Post
#6
|
||
|
He Who Posts Alot... ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Moderator Posts: 17733 Joined: 6-May 03 From: Chicago, USA Member No.: 36345 Xbox Version: v1.1 360 version: v5.0 (360S - trinity) |
eh, dummy files arent an exact science they dont need to be precise or accurate, just take up space i usually make a folder called 00000 and throw stuff in it til its as big as i want |
||
| blueshogun96 |
May 20 2004, 05:20 PM
Post
#7
|
![]() X-S X-perience ![]() ![]() Group: Members Posts: 328 Joined: 24-March 04 Member No.: 109566 |
Oh yeah, i forgot to mention the even bigger reason why i prefer this method above any others. The files created by this program here can be greatly compressed in a .rar or .zip (.rar is better). So a dummy file that's 100MB can be 40k. This way I don't have to start digging in my hard drive for large files, and I don't have to group em together which wastes valuable hard drive space. Although I have 80 gigs, it's still not enough for me because i'm always downloading things over 100MB. I'm not trying to make anything complicated here, I just like to share my findings so that others may find it useful. My soul is fueled by doing good deeds.
|
| --tinman-- |
May 21 2004, 03:03 PM
Post
#8
|
|
X-S Member ![]() Group: Members Posts: 118 Joined: 12-December 03 Member No.: 81474 Xbox Version: none 360 version: v1 (xenon) |
Files made by the Dummy File Maker are EXTREMELY compressible as well.. PLUS you specify the size you want made and POOF...
way too easy |
![]() ![]() |
| Lo-Fi Version | Time is now: 26th May 2013 - 06:12 AM |