Home / Microsoft / Microsoft DOS / dos command for not listing hidden files
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2]  All - (Bottom) Print
Author Topic: dos command for not listing hidden files  (Read 1827 times)
gh0std0g74
Apprentice



Thanked: 37
Posts: 590


« 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.
IP logged

billrich
Guest
« Reply #16 on: November 20, 2009, 08:10:01 PM »

Hello
« Last Edit: November 21, 2009, 10:31:27 PM by billrich » IP logged
gh0std0g74
Apprentice



Thanked: 37
Posts: 590


« 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
IP logged

mroilfield
Adviser



Thanked: 41
Posts: 952

Experience: Experienced
OS: Windows XP



1 1
« 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.
IP logged

You can't fix Stupid!!!
billrich
Guest
« Reply #19 on: November 21, 2009, 10:14:56 AM »

Hello
« Last Edit: November 21, 2009, 10:27:47 PM by billrich » IP logged
milesman
Beginner



Thanked: 6
Posts: 93


« Reply #20 on: November 23, 2009, 02:20:53 PM »

Hello

Hello.
IP logged

(| Cha Cha Cha!
divyap
Guest
« 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.
IP logged
divyap
Guest
« 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.
IP logged
mroilfield
Adviser



Thanked: 41
Posts: 952

Experience: Experienced
OS: Windows XP



1 1
« 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.
IP logged

You can't fix Stupid!!!
divyap
Guest
« 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 » IP logged
Salmon Trout
Prodigy



Thanked: 501
Posts: 7,365

Computer: Specs
Experience: Guru
OS: Linux variant

1
« 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?
IP logged

Pages: 1 [2]  All - (Top) Print 
Home / Microsoft / Microsoft DOS / dos command for not listing hidden files « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.114 seconds with 21 queries.