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

Author Topic: Using a for loop to make unlimited folders  (Read 22721 times)

0 Members and 1 Guest are viewing this topic.

BatchFileCommand

    Topic Starter


    Hopeful
  • Thanked: 1
    Re: Using a for loop to make unlimited folders
    « Reply #15 on: February 15, 2009, 01:26:23 PM »
    No, with this I don't use labels. I do this.

    Code: [Select]
    if  %question%==1 (
    mkdir %foldername%
    )
    if %question%==2 (
    mkdir %foldername%
    mkdir %foldername%
    )


    and so on. I don't use goto in this situation.

    And I still want to know why you need to make so many folders

    It's not like I'm actually going to make hundreds of folders.  I never even said I was going to make hundreds of folders. So will you just cool it.
    οτη άβγαλτος μεταφ βαθμολογία

    Dias de verano

    • Guest
    Re: Using a for loop to make unlimited folders
    « Reply #16 on: February 15, 2009, 01:43:24 PM »
    I see sarcasm is wasted on you, BatchFileCommand. By the way, leave the attitude at the door in future, OK?

    computeruler



      Egghead

      Thanked: 63
      • Yes
      • Yes
    • Experience: Experienced
    • OS: Mac OS
    Re: Using a for loop to make unlimited folders
    « Reply #17 on: February 15, 2009, 01:53:07 PM »
    You mean the home page?

    BatchRocks



      Hopeful
    • Thanked: 3
      Re: Using a for loop to make unlimited folders
      « Reply #18 on: February 15, 2009, 05:05:15 PM »
      And why would you need something like this?  More computer pranks?

      This is quite far from computer pranks. Think before you speak. This is so you don't have to spend
      you time making a menu to ask how many folders you want to make.

      *WINK* Of course this isn't a 'prank'. I know the use for it, but, why is making a folder a "prank".

      And I still want to know why you need to make so many folders
      Stop being nosy, something can be hidden but useful, and not wanted to be public...

      BatchFileCommand

        Topic Starter


        Hopeful
      • Thanked: 1
        Re: Using a for loop to make unlimited folders
        « Reply #19 on: February 15, 2009, 06:22:54 PM »
        Oh. I also used the same strategy to move folders.
        οτη άβγαλτος μεταφ βαθμολογία

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Using a for loop to make unlimited folders
        « Reply #20 on: February 15, 2009, 07:48:11 PM »
        Oh. I also used the same strategy to move folders.
        heh, strategy. Like it's some complicared algorithm involving balanced binary trees, when in fact it's just reinventing the wheel.

        Although I suppose the creation of useless programs early on is one way of getting better. I still remember my first batch program. MENU.BAT, some ridiculous startup program for DOS that displayed a menu to the user. Absolutely zero vaue to anybody, which is where I think it strikes a parallel here.
        I was trying to dereference Null Pointers before it was cool.

        BatchFileCommand

          Topic Starter


          Hopeful
        • Thanked: 1
          Re: Using a for loop to make unlimited folders
          « Reply #21 on: February 15, 2009, 07:51:10 PM »
          Strategy doesn't have to be complicated at all.
          οτη άβγαλτος μεταφ βαθμολογία

          computeruler



            Egghead

            Thanked: 63
            • Yes
            • Yes
          • Experience: Experienced
          • OS: Mac OS
          Re: Using a for loop to make unlimited folders
          « Reply #22 on: February 16, 2009, 11:11:41 AM »
          If you want to hide something.... RAR file with a password

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Using a for loop to make unlimited folders
          « Reply #23 on: February 16, 2009, 11:34:04 AM »
          Strategy doesn't have to be complicated at all.

          neither does making folders...
          I was trying to dereference Null Pointers before it was cool.

          BatchFileCommand

            Topic Starter


            Hopeful
          • Thanked: 1
            Re: Using a for loop to make unlimited folders
            « Reply #24 on: February 16, 2009, 01:10:45 PM »
            Exactly.

            If you want to hide something.... RAR file with a password


            What is the point of telling me that. If I want to hide something.

            Code: [Select]
            attrib "folder" +h +r
            οτη άβγαλτος μεταφ βαθμολογία

            BC_Programmer


              Mastermind
            • Typing is no substitute for thinking.
            • Thanked: 1140
              • Yes
              • Yes
              • BC-Programming.com
            • Certifications: List
            • Computer: Specs
            • Experience: Beginner
            • OS: Windows 11
            Re: Using a for loop to make unlimited folders
            « Reply #25 on: February 16, 2009, 01:12:39 PM »



            What is the point of telling me that. If I want to hide something.

            Code: [Select]
            attrib "folder" +h +r


            That is literally the most naive thing I have ever seen on this forum.
            I was trying to dereference Null Pointers before it was cool.

            BatchFileCommand

              Topic Starter


              Hopeful
            • Thanked: 1
              Re: Using a for loop to make unlimited folders
              « Reply #26 on: February 16, 2009, 01:14:59 PM »
              No, it's not. Why would I put compress something to RAR, if you use the folder or file frequently a password would be roadkill.
              οτη άβγαλτος μεταφ βαθμολογία

              Dias de verano

              • Guest
              Re: Using a for loop to make unlimited folders
              « Reply #27 on: February 16, 2009, 01:18:48 PM »



              What is the point of telling me that. If I want to hide something.

              Code: [Select]
              attrib "folder" +h +r


              That is literally the most naive thing I have ever seen on this forum.


              BatchFileCommand

                Topic Starter


                Hopeful
              • Thanked: 1
                Re: Using a for loop to make unlimited folders
                « Reply #28 on: February 16, 2009, 01:21:31 PM »
                So, you just click, do not show hidden folders. This is on your own computer isn't it?
                οτη άβγαλτος μεταφ βαθμολογία

                Dias de verano

                • Guest
                Re: Using a for loop to make unlimited folders
                « Reply #29 on: February 16, 2009, 01:25:10 PM »
                If you hide something with attrib, who are you hiding it from? Not yourself. That would be silly. Somebody else therefore. Who can click "show hidden files and folders" and see all your goat porn.