Computer Hope

Microsoft => Microsoft DOS => Topic started by: beckenbauerwang on November 23, 2008, 03:58:31 AM

Title: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 03:58:31 AM
how to make 1GB text file by batch file?
thank you!
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 04:18:03 AM
Make a 1 KB text file and append it to itself the required number of times.
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 04:22:05 AM
Is there are kind of command?
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 04:32:16 AM
You mean you want somebody to write you a batch file?

Why do you need to do this?
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 04:35:54 AM
that's not important. 1 minute can be done?
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 04:36:45 AM
yes
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 04:38:06 AM
okay, thank you. i try it
Title: Re: how to make 1GB text file by batch file
Post by: Carbon Dudeoxide on November 23, 2008, 04:39:47 AM
I can see how this would make a 'funny' practical joke.......
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 04:42:29 AM
any idea?
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 04:57:04 AM
If you know how to make a 1 byte text file and you know how to copy a file you can make a text file of any desired size.

Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 04:58:07 AM
I can see how this would make a 'funny' practical joke.......

Which is why I am being coy. If you know anything at all about batch coding, the task is a trivial one.

Quote
that's not important.

Just the sort of answer that makes me want to help! (not)

Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 05:00:45 AM
I can see how this would make a 'funny' practical joke.......

I can think of one or two legitimate reasons, but we're not being given them, in fact I think the well is poisoned.
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 05:02:27 AM
can you show the code to me
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 05:18:33 AM
can you show the code to me

No, but I'll show you the output of my batch file

Code: [Select]
D:\bigfile>bigfile1.bat
23/11/2008  12:06             1,024 big.txt
23/11/2008  12:06             2,048 big.txt
23/11/2008  12:06             4,096 big.txt
23/11/2008  12:06             8,192 big.txt
23/11/2008  12:06            16,384 big.txt
23/11/2008  12:06            32,768 big.txt
23/11/2008  12:06            65,536 big.txt
23/11/2008  12:06           131,072 big.txt
23/11/2008  12:06           262,144 big.txt
23/11/2008  12:06           524,288 big.txt
23/11/2008  12:06         1,048,576 big.txt
23/11/2008  12:06         2,097,152 big.txt
23/11/2008  12:06         4,194,304 big.txt
23/11/2008  12:06         8,388,608 big.txt
23/11/2008  12:06        16,777,216 big.txt
23/11/2008  12:06        33,554,432 big.txt
23/11/2008  12:06        67,108,864 big.txt
23/11/2008  12:06       134,217,728 big.txt
23/11/2008  12:06       268,435,456 big.txt
23/11/2008  12:07       536,870,912 big.txt
23/11/2008  12:09     1,073,741,824 big.txt

Title: Re: how to make 1GB text file by batch file
Post by: Carbon Dudeoxide on November 23, 2008, 05:24:11 AM
I just made one and I let it run as I went to go get water.
Now I'm busy removing 4GB off my external hard drive....

Beckenbauerwang.....think how cells divide...
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 05:30:26 AM
I found it went quite slowly on my USB external drive compared with a 7200 rpm IDE internal.
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 05:33:28 AM
cells divide ???
Title: Re: how to make 1GB text file by batch file
Post by: Carbon Dudeoxide on November 23, 2008, 05:34:08 AM
It went slowly on my External, which is why I went to get water.

Don't want to try it on my internal, at least not now.
Title: Re: how to make 1GB text file by batch file
Post by: Carbon Dudeoxide on November 23, 2008, 05:34:42 AM
cells divide ???
Or rabbits.

At first there's 1, and then there's 2, and then there's 4, then 8, 16, 32, 64.........
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 05:36:57 AM
i got it, can you show the code to me
i'm a beginner
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 05:40:24 AM
i got it, can you show the code to me
i'm a beginner

This is dangerous code in the wrong hands. You have not said why you want it, and even if you did, I am not sure it should be posted here.
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 05:41:57 AM
i want to make a test file, for ftp test
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 05:44:37 AM
i want to make a test file, for ftp test

What do you think, carbon?
Title: Re: how to make 1GB text file by batch file
Post by: Carbon Dudeoxide on November 23, 2008, 05:59:40 AM
What kind of FTP test?

Maybe it's my lack of knowledge in that area, but do you need  a file that keeps increasing in size to perform an FTP test?
Title: Re: how to make 1GB text file by batch file
Post by: Dias de verano on November 23, 2008, 06:06:10 AM
What kind of FTP test?

Maybe it's my lack of knowledge in that area, but do you need  a file that keeps increasing in size to perform an FTP test?

I think he just wants a 1 gb file actually, it was me that introduced the notion of creating such a file by making a 1 kb file and doubling it 20 times.

See how the time increases as the file gets bigger. My cpu went up to 100% as well.

Code: [Select]
23/11/2008 13:01:40.73: 1024
23/11/2008 13:01:40.73: 2048
23/11/2008 13:01:40.75: 4096
23/11/2008 13:01:40.75: 8192
23/11/2008 13:01:40.75: 16384
23/11/2008 13:01:40.76: 32768
23/11/2008 13:01:40.76: 65536
23/11/2008 13:01:40.78: 131072
23/11/2008 13:01:40.81: 262144
23/11/2008 13:01:40.87: 524288
23/11/2008 13:01:40.97: 1048576
23/11/2008 13:01:41.12: 2097152
23/11/2008 13:01:41.45: 4194304
23/11/2008 13:01:42.20: 8388608
23/11/2008 13:01:43.59: 16777216
23/11/2008 13:01:46.54: 33554432
23/11/2008 13:01:52.11: 67108864
23/11/2008 13:02:03.78: 134217728
23/11/2008 13:02:27.76: 268435456
23/11/2008 13:03:17.64: 536870912
23/11/2008 13:05:10.09: 1073741824
Title: Re: how to make 1GB text file by batch file
Post by: beckenbauerwang on November 23, 2008, 06:10:24 AM
how to make 1kb file?
the point is how to set the size
Title: Re: how to make 1GB text file by batch file
Post by: Carbon Dudeoxide on November 23, 2008, 06:12:55 AM
Ummmmm......Press the space bar 1024 times in Notepad and then save the file, duh! :D
Title: Re: how to make 1GB text file by batch file
Post by: Sidewinder on November 23, 2008, 06:41:16 AM
Why not just use the fsutil (http://www.ss64.com/nt/fsutil.html) program? Why is it that the paranoia levels always increase on the weekends?

 8)
Title: Re: how to make 1GB text file by batch file
Post by: Carbon Dudeoxide on November 23, 2008, 06:43:38 AM
Why is it that the paranoia levels always increase on the weekends?
All the kids aren't at school on the weekends.  ::)