using the attrib command

0

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 u.s.b.drive (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

kevin

Posted 2010-11-21T15:15:48.840

Reputation:

Vague, yes, because you've given us absolutely no context about what you're talking about. No languages, no platforms. – skaffman – 2010-11-21T15:18:41.217

This question should be on SuperUser.com – Andrew Barber – 2010-11-21T15:24:03.450

sounds clear to me – barlop – 2011-01-31T18:15:46.920

Answers

3

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

Linker3000

Posted 2010-11-21T15:15:48.840

Reputation: 25 670

0

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"

Bryan Hayag - STI La Union

Posted 2010-11-21T15:15:48.840

Reputation: 1

0

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

Canadian Luke

Posted 2010-11-21T15:15:48.840

Reputation: 22 162