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

Author Topic: Create hidden folder?  (Read 3507 times)

0 Members and 1 Guest are viewing this topic.

Xenfire

    Topic Starter


    Rookie

    Thanked: 1
    Create hidden folder?
    « on: May 08, 2009, 06:27:17 PM »
    I know how to create a normal folder. What I need to do is create a folder from a batch file that is already hidden so I do not need to go in and manually make the folder hidden.

    Help?

    Evan



      Greenhorn

    • Evan Smith
      • Experience: Experienced
      • OS: Windows XP
      Re: Create hidden folder?
      « Reply #1 on: May 08, 2009, 08:01:54 PM »
      ATTRIB /?
      Code: [Select]
      attrib +h "drive:\ folder\folder 2\file.extension"
      There are 10 types of people in this world, those who understand binary and those who don't.

      macdad-



        Expert

        Thanked: 40
        Re: Create hidden folder?
        « Reply #2 on: May 08, 2009, 08:02:19 PM »
        For what purpose?
        If you dont know DOS, you dont know Windows...

        Thats why Bill Gates created the Windows NT Family.

        Helpmeh



          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: Create hidden folder?
        « Reply #3 on: May 09, 2009, 09:29:59 AM »
        Xenfire, you know why clear wasn't working??? Because it was hidden (for some reason I got an error)...so I just did
        attrib -h file
        clearing command
        attrib +h file


        and that's how I got /clear to work...
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.

        Xenfire

          Topic Starter


          Rookie

          Thanked: 1
          Re: Create hidden folder?
          « Reply #4 on: May 09, 2009, 03:58:06 PM »
          Thank you Evan. works fine.

          Helpmeh



            Guru

          • Roar.
          • Thanked: 123
            • Yes
            • Yes
          • Computer: Specs
          • Experience: Familiar
          • OS: Windows 8
          Re: Create hidden folder?
          « Reply #5 on: May 09, 2009, 04:08:31 PM »
          Thank you Evan. works fine.
          So...ban (which I will probably implement after putting your name in again...) will work like this:

          Code: [Select]
          if /i "%msg%"=="/ban" (
          echo Ban who?
          set /p ban=Username^:
          echo. > "Hiddenpath\%ban%"
          attrib +h "Hiddenpath\%ban%"
          echo %ban% has been banned. > %serv%
          goto modview


          That will ban someone...then this will check to see if they are banned whenever they send a message.

          Code: [Select]
          if exist "Hiddenpath\%usr" (
          :loopban
          cls
          echo You have been banned. The ban will be reviewed by the admin.
          pause > nul
          goto loopban

          It will go between :msgloop and set /p msg=Message^: in chatter...and won't go after :modview, so the mods can't get banned...good idea!
          Where's MagicSpeed?
          Quote from: 'matt'
          He's playing a game called IRL. Great graphics, *censored* gameplay.

          Xenfire

            Topic Starter


            Rookie

            Thanked: 1
            Re: Create hidden folder?
            « Reply #6 on: May 09, 2009, 04:10:09 PM »
            My checker just goes when they try to log in to any component of the program.

            Helpmeh



              Guru

            • Roar.
            • Thanked: 123
              • Yes
              • Yes
            • Computer: Specs
            • Experience: Familiar
            • OS: Windows 8
            Re: Create hidden folder?
            « Reply #7 on: May 09, 2009, 04:25:41 PM »
            My checker just goes when they try to log in to any component of the program.
            What do you mean it just goes away? It just exits? Did you do that on purpose? (if the second question was yes)
            Where's MagicSpeed?
            Quote from: 'matt'
            He's playing a game called IRL. Great graphics, *censored* gameplay.

            Xenfire

              Topic Starter


              Rookie

              Thanked: 1
              Re: Create hidden folder?
              « Reply #8 on: May 10, 2009, 08:09:27 AM »
              I didn't say "goes away" I just said "goes"
              as in runs.

              double check the contents of the post before you reply silly.

              Helpmeh



                Guru

              • Roar.
              • Thanked: 123
                • Yes
                • Yes
              • Computer: Specs
              • Experience: Familiar
              • OS: Windows 8
              Re: Create hidden folder?
              « Reply #9 on: May 10, 2009, 09:29:55 AM »
              I didn't say "goes away" I just said "goes"
              as in runs.

              double check the contents of the post before you reply silly.
              Well it obviously runs when they first run the program, although then you'd have to put it in more than once.
              Where's MagicSpeed?
              Quote from: 'matt'
              He's playing a game called IRL. Great graphics, *censored* gameplay.