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

Author Topic: dos command for not listing hidden files  (Read 7680 times)

0 Members and 1 Guest are viewing this topic.

gh0std0g74



    Apprentice

    Thanked: 37
    Re: dos command for not listing hidden files
    « Reply #15 on: November 20, 2009, 07:34:33 PM »


    C:\>attrib  /?
    Displays or changes file attributes.


    C:\>attrib  +H  *.*

    ( set the +H  attrib for all files on that drive )

    i bet you didn't test it out whether this is workable.

    billrich

    • Guest
    Re: dos command for not listing hidden files
    « Reply #16 on: November 20, 2009, 08:10:01 PM »
    Hello
    « Last Edit: November 21, 2009, 10:31:27 PM by billrich »

    gh0std0g74



      Apprentice

      Thanked: 37
      Re: dos command for not listing hidden files
      « Reply #17 on: November 20, 2009, 08:38:57 PM »
      I did test test attrib +H *.*  for all files in one folder.  It did work. The dir command will not list the files while the files are hidden.
      then try this
      Code: [Select]
      dir /AH

      mroilfield



        Mentor
      • Thanked: 42
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 11
      Re: dos command for not listing hidden files
      « Reply #18 on: November 20, 2009, 11:54:27 PM »

      Insult, browbeat and harass the OP (Original Poster ) .  Is this SOP ( standard operating procedure )  for Computer Hope?


      How did we insult, browbeat or harass the OP?

      It is not SOP to help some one do something that they shouldn't be doing either. In this case the OP is trying to hide something on a network that he is not the administrator of. If he needs this hidden he needs to go to the administrator and discuss the problem with them. If they decide to help that is their business.

      We are not here to help circumvent, bypass, or other wise help some one do something that their network administrators will not allow.
      You can't fix Stupid!!!

      billrich

      • Guest
      Re: dos command for not listing hidden files
      « Reply #19 on: November 21, 2009, 10:14:56 AM »
      Hello
      « Last Edit: November 21, 2009, 10:27:47 PM by billrich »

      milesman



        Beginner

        Thanked: 6
        (| Cha Cha Cha!

        divyap

        • Guest
        Re: dos command for not listing hidden files
        « Reply #21 on: November 24, 2009, 09:53:50 PM »
        Not really, but you can ensure that hidden files are listed by setting the dircmd environment variable.

        Control Panel > System > Advanced tab > Environment Variables. Create
        the system variable "DIRCMD" and assign a value of /a or /a:h

        Note: dircmd parameters can be overridden on the command line but this might prove helpful.

        Good luck.  8)

        Thank you very much.

        divyap

        • Guest
        Re: dos command for not listing hidden files
        « Reply #22 on: November 24, 2009, 09:59:12 PM »
        i bet you didn't test it out whether this is workable.

        Even after changing the attributes of file to be hidden, dir /a lists all the hidden files in that directory. My requirement is not to have listing of the hidden files in any manner.

        mroilfield



          Mentor
        • Thanked: 42
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 11
        Re: dos command for not listing hidden files
        « Reply #23 on: November 24, 2009, 10:42:04 PM »
        Divyap,

        Why can't you get your network administrators to help you do this? If it is because you don't want them to know about it then we can't help you.
        You can't fix Stupid!!!

        divyap

        • Guest
        Re: dos command for not listing hidden files
        « Reply #24 on: November 24, 2009, 11:50:32 PM »
        >>>>
        Why can't you get your network administrators to help you do this? If it is because you don't want them to know about it then we can't help you.


        mroilfield,
                       as you are thinking that I am hiding something from my network administrator.There is nothing like that.

                        I am actually developing a security application that creates a ramdisk. Contents in that ramdisk need to be secured. And you might be knowing that ramdisk is not a physical drive whereas it acts as a physical drive. This drive can be mounted as well as unmounted. While it is mounted, sometimes there is a possibility for unauthorized users to get into the system and get the directory listing of that drive which I do not want. Thats it. I am not doing anything wrong as you are having an impression on me.

                        It is my application requirement and what is required is bcoz f this application, ordinary functioning of the system should not be lost. My administrator itself wants it to be protected.....
        « Last Edit: November 25, 2009, 12:44:17 AM by divyap »

        Salmon Trout

        • Guest
        Re: dos command for not listing hidden files
        « Reply #25 on: November 25, 2009, 02:02:39 AM »
        Quote from: divyap
        I am actually developing a security application that creates a ramdisk.

        ... You are a professional developer yet you have to trawl the web for help forums?