Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

switch for viewing folder contents

Original Message
Name: oldslowpoke
Date: February 27, 2006 at 12:18:59 Pacific
Subject: switch for viewing folder contents
OS: Windows ME
CPU/Ram: Barton/512
Model/Manufacturer: Home built
Comment:
What is the correct switch for displaying the contents of a folder one page at a time while in DOS?
Some of the Windows folders are much to large to view the entire contents on one screen.


Report Offensive Message For Removal


Response Number 1
Name: IVO
Date: February 27, 2006 at 12:31:52 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
Hi baby, did your mom ever say you that switch /? exist?

So type Dir /? and you'll know the unknown.

By the way the switch you are looking for is /P, i.e

Dir /AD /P


Report Offensive Follow Up For Removal

Response Number 2
Name: Mechanix2Go
Date: February 27, 2006 at 22:19:55 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
dir /p dirname


If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal

Response Number 3
Name: wizard-fred
Date: February 27, 2006 at 23:28:28 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
Another method is to redirect tthe output of the dir command [dir > dir.lst]. Then use an editor as edit to view it [edit dir.lst] whis is good if you have to back and forth.

Report Offensive Follow Up For Removal

Response Number 4
Name: Mechanix2Go
Date: February 27, 2006 at 23:49:24 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
I always:

dir|list l/s

but that's me


If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal

Response Number 5
Name: KasMage15
Date: February 28, 2006 at 17:00:07 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
The simplest way is to use the /P switch, which stands for pause.

You can also use DIR|MORE to pipe the output to the MORE command, which will pause after a pull page of info.

The other options listed above work just as well. But the first thing I posted is recommended for efficiency and simplicity.


Report Offensive Follow Up For Removal


Response Number 6
Name: oldslowpoke
Date: February 28, 2006 at 17:53:12 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
Thanks to all of you. That is exactly what I needed.

Report Offensive Follow Up For Removal

Response Number 7
Name: jboy
Date: February 28, 2006 at 18:08:44 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
Pretty sure IVO nailed it right from the start

... let's all say it again?

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true


Report Offensive Follow Up For Removal

Response Number 8
Name: CoffeeBreak
Date: March 1, 2006 at 09:55:59 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
"Play it again, Sam."

Dir /AD /P

CoffeeBreak


Report Offensive Follow Up For Removal

Response Number 9
Name: Mechanix2Go
Date: March 1, 2006 at 23:31:27 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
CoffeeBreak,

"What is the correct switch for displaying the contents of a folder one page at a time while in DOS?"

keyword: contents

Have an espresso on me.


If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal

Response Number 10
Name: Mike Newcomb
Date: March 1, 2006 at 23:48:20 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
Above have advised:-
/P (for more)
|M or |MORE

also of help is:-
/W (for wide)

In dos try HELP or command /? for explanation of commands and/or options.

Good Luck - Keep us posted.


Report Offensive Follow Up For Removal

Response Number 11
Name: CoffeeBreak
Date: March 2, 2006 at 15:33:31 Pacific
Subject: switch for viewing folder contents
Reply: (edit)
Hi M2,

I always appreciate your postings. You seem to be more interested in finding solutions to computer problems than nit picking the questions, grammar, etc.

I hope that you were not asking a trick question. MS-DOS has directories and Windows have folders. I will use these words interchangeably in your question.

If you type "dir /p" at an MS-DOS C:\ prompt, it will list various directories and some files, for example "autoexec.bat" but does not list any hidden files such as "IO.sys."

If you type "dir /AD /p" at an MS-DOS C:\prompt, it will list all directories, but not any files.

If you type "dir /A-D /p" at an MS-DOS C:\ prompt, it will list all files, including hidden files, but no directories.

If you type "dir /A /p" at an MS-DOS C:\prompt, it will list all files, including hidden and all directories.

I guess that I was trying to be cute, or something. JBOY seems to like IVO's reply best and said "lets all say it again?" Therefore, I took a quote or maybe the most misquoted line from the 1942 movie, Casablanca, "Play it again, Sam" and repeated part of IVO's reply. My apologies to JBOY and IVO.

Sorry for being so late in the reply, I just got off my day job. Thanks for the espresso.

CoffeeBreak


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: switch for viewing folder contents

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




acer 312T BIOS problem

K7 Turbo possible max fsb?

Pc anywher problem

WinFLP & OE/Outlook2003

Computer resets after a few minutes


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC