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

Author Topic: creating new files?  (Read 13621 times)

0 Members and 2 Guests are viewing this topic.

lordoftheplat

    Topic Starter


    Hopeful

  • teh god.
  • Thanked: 1
    creating new files?
    « on: March 21, 2007, 05:39:19 AM »
    i was wondering how do u make a file that is .png
    that is empty
    i want the name to be
    Cursor0000.png
    Cursor0001.png
    Cursor0002.png
    Cursor0003.png
    Cursor0004.png
    Cursor0005.png
    Cursor0006.png
    Cursor0008.png
    Cursor0009.png
    Cursor00010.png
    zepperblood.deviantart.com

    Carbon Dudeoxide

    • Global Moderator

    • Mastermind
    • Thanked: 169
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Experience: Guru
    • OS: Mac OS
    Re: creating new files?
    « Reply #1 on: March 21, 2007, 07:00:06 AM »
    Then in a batch file you can put:
    Quote
    @echo off
    create>>"%userprofile%\desktop\Cursor0000.png"
    create>>"%userprofile%\desktop\Cursor0001.png"
    create>>"%userprofile%\desktop\Cursor0002.png"
    create>>"%userprofile%\desktop\Cursor0003.png"
    create>>"%userprofile%\desktop\Cursor0004.png"
    create>>"%userprofile%\desktop\Cursor0005.png"
    create>>"%userprofile%\desktop\Cursor0006.png"
    create>>"%userprofile%\desktop\Cursor0007.png"
    create>>"%userprofile%\desktop\Cursor0008.png"
    create>>"%userprofile%\desktop\Cursor0009.png"
    create>>"%userprofile%\desktop\Cursor00010.png"
    exit

    If you double click the .png file, it will say 'No preview available' because it is empty. Just right click the file and click edit and you should be in paint and you can do whatever you want with it.

    Note: the 'create' is in the code because i needed something behind the '>>'.

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: creating new files?
    « Reply #2 on: March 21, 2007, 07:18:59 AM »
    lordoftheplat, may I make a suggestion regarding the image in your signature block?  Your image is over 113.29KB.  By merely pasting it into Paint and saving as a JPEG file, the file size drops to 20.7KB, or nearly 1/6 the file size of your current image.  And, it will look exactly the same.  
    « Last Edit: March 21, 2007, 07:19:35 AM by soybean »

    lordoftheplat

      Topic Starter


      Hopeful

    • teh god.
    • Thanked: 1
      Re: creating new files?
      « Reply #3 on: March 21, 2007, 07:21:08 AM »
      uh....
      "create" isnt usable in ms-dos...
      it doesnt exist
      there is no such thing in sys32 which is called
      "create.com"
      zepperblood.deviantart.com

      Carbon Dudeoxide

      • Global Moderator

      • Mastermind
      • Thanked: 169
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Experience: Guru
      • OS: Mac OS
      Re: creating new files?
      « Reply #4 on: March 21, 2007, 07:25:06 AM »
      Quote
      Note: the 'create' is in the code because i needed something behind the '>>'.

      Even if the 'create' was changed to 'cheese' you will still get 11 blank png files, lol
      « Last Edit: March 21, 2007, 07:25:50 AM by carbondudeoxide »

      lordoftheplat

        Topic Starter


        Hopeful

      • teh god.
      • Thanked: 1
        Re: creating new files?
        « Reply #5 on: March 21, 2007, 07:26:21 AM »
        dont get you explain?
        so it should start with
        >>
        zepperblood.deviantart.com

        lordoftheplat

          Topic Starter


          Hopeful

        • teh god.
        • Thanked: 1
          Re: creating new files?
          « Reply #6 on: March 21, 2007, 07:30:10 AM »
          ok i get it so the code can just start with >> cuz ms-dos doesnt allow you to
          UNDERSTOOD!
          zepperblood.deviantart.com

          Carbon Dudeoxide

          • Global Moderator

          • Mastermind
          • Thanked: 169
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Experience: Guru
          • OS: Mac OS
          Re: creating new files?
          « Reply #7 on: March 21, 2007, 07:33:42 AM »
          lol
          In this code [highlight]>>"%userprofile%\desktop\file.png"[/highlight]
          [highlight]>>[/highlight] means it saves the file somewhere
          [highlight]%userprofile%\desktop\ [/highlight]is the path of where the file is to be saved
          [highlight]file.png[/highlight] is the filename and filetype to be saved as
          You want a blank file so you can't put
          [highlight]echo. "%userprofile%\desktop\file.png"[/highlight]
          because it will create a line in the png file making it not work.
          because 'create' or 'cheese' is not a recognized code, nothing happens and it creates a file (png) which has nothing in it.

          Simple enough?

          Carbon Dudeoxide

          • Global Moderator

          • Mastermind
          • Thanked: 169
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Experience: Guru
          • OS: Mac OS
          Re: creating new files?
          « Reply #8 on: March 21, 2007, 07:35:25 AM »
          Quote
          ok i get it so the code can just start with >> cuz ms-dos doesnt allow you to
          UNDERSTOOD!

          Thats why you save it as a BATCH FILE.........................and plz do what Soybean suggested to do.... ;)

          lordoftheplat

            Topic Starter


            Hopeful

          • teh god.
          • Thanked: 1
            Re: creating new files?
            « Reply #9 on: March 21, 2007, 07:38:26 AM »
            ok wait wait i got another problem so now i have created the .png is there
            a way where i can add and image into it with a batch file
            eg. i have a file name
            cursor.png
            but i want 10 of those file
            wif
            Cursor0000.png
            Cursor0001.png
            Cursor0002.png
            Cursor0003.png
            Cursor0004.png
            Cursor0005.png
            Cursor0006.png
            Cursor0008.png
            Cursor0009.png
            Cursor00010.png
            [size=22]
            btw  IT IS AREADY JPEG and seriously it wont look the same the quality will drop
            drasticly[/size]
            « Last Edit: March 21, 2007, 07:40:46 AM by lordoftheplat »
            zepperblood.deviantart.com

            Carbon Dudeoxide

            • Global Moderator

            • Mastermind
            • Thanked: 169
              • Yes
              • Yes
              • Yes
            • Certifications: List
            • Experience: Guru
            • OS: Mac OS
            Re: creating new files?
            « Reply #10 on: March 21, 2007, 07:44:00 AM »
            So you want to have an image already in it?? Because that isn't possible.............

            and also get rid of that scroll bar next to your image, suggest getting rid of the text above that DRAGON MAGE picture
            « Last Edit: March 21, 2007, 07:50:48 AM by carbondudeoxide »

            lordoftheplat

              Topic Starter


              Hopeful

            • teh god.
            • Thanked: 1
              Re: creating new files?
              « Reply #11 on: March 21, 2007, 07:49:39 AM »
              [size=24]TOPIC CLOSED[/size]
              zepperblood.deviantart.com

              ghostdog74



                Specialist

                Thanked: 27
                Re: creating new files?
                « Reply #12 on: March 21, 2007, 08:00:20 AM »
                to create empty file
                Code: [Select]
                copy nul newfile

                soybean



                  Genius
                • The first soybean ever to learn the computer.
                • Thanked: 469
                • Computer: Specs
                • Experience: Experienced
                • OS: Windows 10
                Re: creating new files?
                « Reply #13 on: March 21, 2007, 08:00:52 AM »
                Nope, it'll look just as good, see (20.1KB):
                « Last Edit: March 21, 2007, 08:01:42 AM by soybean »

                lordoftheplat

                  Topic Starter


                  Hopeful

                • teh god.
                • Thanked: 1
                  Re: creating new files?
                  « Reply #14 on: March 21, 2007, 08:03:55 AM »
                  soybean haha funny...ask anyone who have proper eyes they will say that has horrible graphics
                  zepperblood.deviantart.com