DIR /s/-p

  • Thread starter Thread starter Howard Kaikow
  • Start date Start date
H

Howard Kaikow

According to the help for dir, I would expect the same behavior as in Widows
2000.
But the "-' is being ignored.
 
Use
DIR /s
to get a listing without pausing at each screeenfull. That's how it works
in W2000 and XP, and AFAIK has always been thus, despite the comment in the
Help message.
 
Jeff Richards said:
Use
DIR /s
to get a listing without pausing at each screeenfull. That's how it works
in W2000 and XP, and AFAIK has always been thus, despite the comment in the
Help message.

Not in Windows 2000.
dir/s pauses on each screen.
 
Western Infidels said:
What did it do in Windows 2000?

In Win 2000, dir /s pauses after each screen.
One has to use dir/s/-p to avoid the pauses.
The help for "dir" lists the "-" modifier only in the file-attributes
section and the sort-order section. It doesn't look like it's intended
to be a general-purpose modifier.

If you want a recursive listing without paging, doesn't "dir /s" do
it?
In Vista, seems so.

Seems that -p and p do the same thing.

That change could break programs from earlier versions that shell a command
line, and process the resultant output.

Folkes at MSFT were just not thinking when they made such changes in Vista.
 
I tested it before posting, and for both W2k and XP as used here dir/s does
not pause.

If DIRCMD is set to /p then using dir /s/-p will display the listing without
pausing.

Perhaps your W2k system had the DIRCMD setting and Vista does not.
 
Jeff Richards said:
I tested it before posting, and for both W2k and XP as used here dir/s does
not pause.

If DIRCMD is set to /p then using dir /s/-p will display the listing without
pausing.

Perhaps your W2k system had the DIRCMD setting and Vista does not.

It's been so long, I do not recall how to check or set DIRCMD.
 
In Win 2000, I have DIRCMD=/og /a /p.
In Vista, DIRCMD not set.

I must have set the critter years ago, and those brain cellss are long gone.
 
Back
Top