attrib command

Posted on 2003-03-15
Medium Priority
Last Modified: 2008-03-10
I am currently taking classes on DOS and am having problems figuring out what the correct command would be to view attributes.  What exactly I need is a directory listing that displays ONLY files that have both the hidden and the system attributes set.  I am able to pull up all of them with the attrib *.* command and able to change the attributes. I just can't seem to figure out how to display only the files that have both H and S attributes set.
Question by:lorlai77
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 8143893
dir /ash

That's it.... ;-)

Do you need anything more?
LVL 13

Accepted Solution

oldgreyguy earned 200 total points
ID: 8144485

Author Comment

ID: 8144628
this answer will also help me with my next DOS excercise. The sites are excellent and are a wealth of information. thankyou. lorlai77
LVL 13

Expert Comment

ID: 8144638
you are welcome

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month15 days, 15 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question