Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'll try again. If it vague pleae explain why.

I am trying to use the attrib command in the c.l.i. format.

I need to find all files from all directories on my (I:) at the same time I need the output of this information to pause between screens.

This needs to be done in one command prompt.

The problem i am having is the pause part of the question.

when using the dir command a simple parameter /p takes care of the pause but no in the attrib command

share|improve this question

migrated from Nov 21 '10 at 18:01

This question came from our site for professional and enthusiast programmers.

Vague, yes, because you've given us absolutely no context about what you're talking about. No languages, no platforms. – skaffman Nov 21 '10 at 15:18
This question should be on – Andrew Barber Nov 21 '10 at 15:24
sounds clear to me – barlop Jan 31 '11 at 18:15

You can send the output of DOS command through the 'more' utility, whose job is to send its input to the standard output (screen) one page at a time with a 'more' prompt to take you to the next page. This operation is called 'piping' and to do what you want, you use the pipe symbol: | (a vertical bar, possibly broken in the middle depending on your display character set and keyboard logos). To do what you want, try your attrib command like this:

attrib | more

On my keyboard, the pipe symbol is above the backslash:

enter image description here

share|improve this answer

Find all files and directories:

dir I:\*.* /s /a /p

That lists all files, no matter the attribute or subfolder. If you are ok not using the ATTRIB command, this is what you're looking for. It can also display the attributes with the command shown on Windows XP/Vista/7

share|improve this answer

You can also try attribute commands in folder names with spaces, such as:

Folder Name = My Folder

disable hidden attributes for My Folder - Folder

attrib -h -s "My Folder"
share|improve this answer

You must log in to answer this question.