Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: how to make 1GB text file by batch file  (Read 21004 times)

0 Members and 1 Guest are viewing this topic.

beckenbauerwang

    Topic Starter


    Rookie

    how to make 1GB text file by batch file
    « on: November 23, 2008, 03:58:31 AM »
    how to make 1GB text file by batch file?
    thank you!

    Dias de verano

    • Guest
    Re: how to make 1GB text file by batch file
    « Reply #1 on: November 23, 2008, 04:18:03 AM »
    Make a 1 KB text file and append it to itself the required number of times.

    beckenbauerwang

      Topic Starter


      Rookie

      Re: how to make 1GB text file by batch file
      « Reply #2 on: November 23, 2008, 04:22:05 AM »
      Is there are kind of command?

      Dias de verano

      • Guest
      Re: how to make 1GB text file by batch file
      « Reply #3 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?

      beckenbauerwang

        Topic Starter


        Rookie

        Re: how to make 1GB text file by batch file
        « Reply #4 on: November 23, 2008, 04:35:54 AM »
        that's not important. 1 minute can be done?

        Dias de verano

        • Guest
        Re: how to make 1GB text file by batch file
        « Reply #5 on: November 23, 2008, 04:36:45 AM »
        yes

        beckenbauerwang

          Topic Starter


          Rookie

          Re: how to make 1GB text file by batch file
          « Reply #6 on: November 23, 2008, 04:38:06 AM »
          okay, thank you. i try it

          Carbon Dudeoxide

          • Global Moderator

          • Mastermind
          • Thanked: 169
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Experience: Guru
          • OS: Mac OS
          Re: how to make 1GB text file by batch file
          « Reply #7 on: November 23, 2008, 04:39:47 AM »
          I can see how this would make a 'funny' practical joke.......

          beckenbauerwang

            Topic Starter


            Rookie

            Re: how to make 1GB text file by batch file
            « Reply #8 on: November 23, 2008, 04:42:29 AM »
            any idea?

            Dias de verano

            • Guest
            Re: how to make 1GB text file by batch file
            « Reply #9 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.


            Dias de verano

            • Guest
            Re: how to make 1GB text file by batch file
            « Reply #10 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)


            Dias de verano

            • Guest
            Re: how to make 1GB text file by batch file
            « Reply #11 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.

            beckenbauerwang

              Topic Starter


              Rookie

              Re: how to make 1GB text file by batch file
              « Reply #12 on: November 23, 2008, 05:02:27 AM »
              can you show the code to me

              Dias de verano

              • Guest
              Re: how to make 1GB text file by batch file
              « Reply #13 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

              « Last Edit: December 03, 2008, 10:02:19 AM by Dias de verano »

              Carbon Dudeoxide

              • Global Moderator

              • Mastermind
              • Thanked: 169
                • Yes
                • Yes
                • Yes
              • Certifications: List
              • Experience: Guru
              • OS: Mac OS
              Re: how to make 1GB text file by batch file
              « Reply #14 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...

              Dias de verano

              • Guest
              Re: how to make 1GB text file by batch file
              « Reply #15 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.

              beckenbauerwang

                Topic Starter


                Rookie

                Re: how to make 1GB text file by batch file
                « Reply #16 on: November 23, 2008, 05:33:28 AM »
                cells divide ???

                Carbon Dudeoxide

                • Global Moderator

                • Mastermind
                • Thanked: 169
                  • Yes
                  • Yes
                  • Yes
                • Certifications: List
                • Experience: Guru
                • OS: Mac OS
                Re: how to make 1GB text file by batch file
                « Reply #17 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.

                Carbon Dudeoxide

                • Global Moderator

                • Mastermind
                • Thanked: 169
                  • Yes
                  • Yes
                  • Yes
                • Certifications: List
                • Experience: Guru
                • OS: Mac OS
                Re: how to make 1GB text file by batch file
                « Reply #18 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.........

                beckenbauerwang

                  Topic Starter


                  Rookie

                  Re: how to make 1GB text file by batch file
                  « Reply #19 on: November 23, 2008, 05:36:57 AM »
                  i got it, can you show the code to me
                  i'm a beginner

                  Dias de verano

                  • Guest
                  Re: how to make 1GB text file by batch file
                  « Reply #20 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.

                  beckenbauerwang

                    Topic Starter


                    Rookie

                    Re: how to make 1GB text file by batch file
                    « Reply #21 on: November 23, 2008, 05:41:57 AM »
                    i want to make a test file, for ftp test

                    Dias de verano

                    • Guest
                    Re: how to make 1GB text file by batch file
                    « Reply #22 on: November 23, 2008, 05:44:37 AM »
                    i want to make a test file, for ftp test

                    What do you think, carbon?

                    Carbon Dudeoxide

                    • Global Moderator

                    • Mastermind
                    • Thanked: 169
                      • Yes
                      • Yes
                      • Yes
                    • Certifications: List
                    • Experience: Guru
                    • OS: Mac OS
                    Re: how to make 1GB text file by batch file
                    « Reply #23 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?

                    Dias de verano

                    • Guest
                    Re: how to make 1GB text file by batch file
                    « Reply #24 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

                    beckenbauerwang

                      Topic Starter


                      Rookie

                      Re: how to make 1GB text file by batch file
                      « Reply #25 on: November 23, 2008, 06:10:24 AM »
                      how to make 1kb file?
                      the point is how to set the size

                      Carbon Dudeoxide

                      • Global Moderator

                      • Mastermind
                      • Thanked: 169
                        • Yes
                        • Yes
                        • Yes
                      • Certifications: List
                      • Experience: Guru
                      • OS: Mac OS
                      Re: how to make 1GB text file by batch file
                      « Reply #26 on: November 23, 2008, 06:12:55 AM »
                      Ummmmm......Press the space bar 1024 times in Notepad and then save the file, duh! :D

                      Sidewinder



                        Guru

                        Thanked: 139
                      • Experience: Familiar
                      • OS: Windows 10
                      Re: how to make 1GB text file by batch file
                      « Reply #27 on: November 23, 2008, 06:41:16 AM »
                      Why not just use the fsutil program? Why is it that the paranoia levels always increase on the weekends?

                       8)
                      The true sign of intelligence is not knowledge but imagination.

                      -- Albert Einstein

                      Carbon Dudeoxide

                      • Global Moderator

                      • Mastermind
                      • Thanked: 169
                        • Yes
                        • Yes
                        • Yes
                      • Certifications: List
                      • Experience: Guru
                      • OS: Mac OS
                      Re: how to make 1GB text file by batch file
                      « Reply #28 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.  ::)