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

Author Topic: Hidden file  (Read 6195 times)

0 Members and 1 Guest are viewing this topic.

ŽOŠK

  • Guest
Hidden file
« on: April 25, 2007, 08:37:36 AM »
I want to make a file to be hidden. How can I do it in DOS??

James2000

  • Guest
Re: Hidden file
« Reply #1 on: April 25, 2007, 08:44:28 AM »
attrib  +h  file

ŽOŠK

  • Guest
Re: Hidden file
« Reply #2 on: April 25, 2007, 09:02:06 AM »
10x  ;)

NiTeCr4Lr

  • Guest
Re: Hidden file
« Reply #3 on: April 25, 2007, 02:43:28 PM »
How about showing (super)hidden files on dir command then?

Carbon Dudeoxide

  • Global Moderator

  • Mastermind
  • Thanked: 169
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Experience: Guru
  • OS: Mac OS
Re: Hidden file
« Reply #4 on: April 25, 2007, 04:37:49 PM »
well to show the file again its attrib -h file

contrex

  • Guest
Re: Hidden file
« Reply #5 on: April 27, 2007, 12:39:26 AM »
How about showing (super)hidden files on dir command then?

You can find this out yourself!!! Just type DIR /? at the prompt and then read the help text.

It is good to help people but they MUST learn to help themselves at some point. Everybody who wants to use the command line should read a good tutorial and do plenty of experiments. This is a subject where an enquiring mind is absolutely needed!

You use DIR with the /A switch. A is for Attribute.

DIR /AH shows all hidden files or folders. Other switches are /AS (system files) /AR (read only) /AD (only show directories) /AA (show files ready for archiving). They can be accumulated thus DIR /AHRS.

Use a minus sign to indicate the opposite so e.g. DIR /A-D will exclude directories from DIR's listing.



« Last Edit: April 27, 2007, 01:51:26 AM by contrex »