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 21002 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...