Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. hide folder using dos command

hide folder using dos command

Scheduled Pinned Locked Moved System Admin
question
12 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M mevivekdua

    Hi All I want to hide a folder using ms dos command. Any one knows what is the command and please don't forget to mention the command to make it visible. :) Thanks in advance.

    v

    J Offline
    J Offline
    Johpoke
    wrote on last edited by
    #2

    Hello again :) I just looked abit at mkdir and md, none of them seem to have hidden params (i assume you mean the normal hidden attribute?) There might be unusual commands to do that though, otherwise you might be able to use cscript from cmd. Maybe something like this[^] If you dont want to do that, just create a C++ program which you call from cmd which does the work for you... :)

    //Johannes

    L M 2 Replies Last reply
    0
    • J Johpoke

      Hello again :) I just looked abit at mkdir and md, none of them seem to have hidden params (i assume you mean the normal hidden attribute?) There might be unusual commands to do that though, otherwise you might be able to use cscript from cmd. Maybe something like this[^] If you dont want to do that, just create a C++ program which you call from cmd which does the work for you... :)

      //Johannes

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #3

      Hi, the ATTRIB command is used to set or clear file/dir attributes, "hidden" is one of them. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


      J 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, the ATTRIB command is used to set or clear file/dir attributes, "hidden" is one of them. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


        J Offline
        J Offline
        Johpoke
        wrote on last edited by
        #4

        Thats a nice command. Its allways interesting to find new commands within cmd, there are so many...

        //Johannes

        1 Reply Last reply
        0
        • J Johpoke

          Hello again :) I just looked abit at mkdir and md, none of them seem to have hidden params (i assume you mean the normal hidden attribute?) There might be unusual commands to do that though, otherwise you might be able to use cscript from cmd. Maybe something like this[^] If you dont want to do that, just create a C++ program which you call from cmd which does the work for you... :)

          //Johannes

          M Offline
          M Offline
          mevivekdua
          wrote on last edited by
          #5

          Hi !! Thanks for the reply. I will work around this. One more question. Can i set password for any folder in windows XP ? If yes then how ? Thanks in advance

          v

          D 1 Reply Last reply
          0
          • M mevivekdua

            Hi !! Thanks for the reply. I will work around this. One more question. Can i set password for any folder in windows XP ? If yes then how ? Thanks in advance

            v

            D Offline
            D Offline
            Don Box
            wrote on last edited by
            #6

            To make folder password protected, it seems u may need to write low level driver. Not sure. I also wanna do the same.

            Come online at:- jubinc@skype

            M 2 Replies Last reply
            0
            • D Don Box

              To make folder password protected, it seems u may need to write low level driver. Not sure. I also wanna do the same.

              Come online at:- jubinc@skype

              M Offline
              M Offline
              mevivekdua
              wrote on last edited by
              #7

              i am in a office so cant come on skype right now, sorry

              v

              1 Reply Last reply
              0
              • D Don Box

                To make folder password protected, it seems u may need to write low level driver. Not sure. I also wanna do the same.

                Come online at:- jubinc@skype

                M Offline
                M Offline
                mevivekdua
                wrote on last edited by
                #8

                I do not think we need to write any program. I guess there is some command in ms dos to perform this task. My friend did that way back long but he also has no idea about it now.

                v

                D D 2 Replies Last reply
                0
                • M mevivekdua

                  I do not think we need to write any program. I guess there is some command in ms dos to perform this task. My friend did that way back long but he also has no idea about it now.

                  v

                  D Offline
                  D Offline
                  Don Box
                  wrote on last edited by
                  #9

                  See, we can prevent folder from accessing/deletion. But for password protection, not sure, low-lever driver must be written.

                  Come online at:- jubinc@skype

                  1 Reply Last reply
                  0
                  • M mevivekdua

                    I do not think we need to write any program. I guess there is some command in ms dos to perform this task. My friend did that way back long but he also has no idea about it now.

                    v

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #10

                    ATTRIB has been around since the days of DOS 2.0 THere is no command to "password protect" a folder. None of the file systems Windows supports offers this kind of functionality. It is possible, however, to write a driver that creates a file and treats it like an extension to the file system. If you're comfortable with C++ and writing drivers for Windows, great, have a nice time. If not, you've jumped into the ocean without knowing how to swim.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007

                    D 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      ATTRIB has been around since the days of DOS 2.0 THere is no command to "password protect" a folder. None of the file systems Windows supports offers this kind of functionality. It is possible, however, to write a driver that creates a file and treats it like an extension to the file system. If you're comfortable with C++ and writing drivers for Windows, great, have a nice time. If not, you've jumped into the ocean without knowing how to swim.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                           2006, 2007

                      D Offline
                      D Offline
                      Don Box
                      wrote on last edited by
                      #11

                      That's y I mentioned, NOT SURE.

                      Come online at:- jubinc@skype

                      1 Reply Last reply
                      0
                      • M mevivekdua

                        Hi All I want to hide a folder using ms dos command. Any one knows what is the command and please don't forget to mention the command to make it visible. :) Thanks in advance.

                        v

                        B Offline
                        B Offline
                        Biju Samuel
                        wrote on last edited by
                        #12

                        So, did you get your answer? If you have not. The command is ATTRIB :)

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups