Dos command

R

Richard

I used the "dir" command in dos to list all the folders and file in that
directory. However, I want to go into a folder called "A" in the directory
just listed. What is the command for this at the prompt?
 
R

Roger Govier

Hi Richard

cd A
if the folder is directly off the folder you are currently located.
 
M

Michael A. Terrell

Richard said:
I used the "dir" command in dos to list all the folders and file in that
directory. However, I want to go into a folder called "A" in the directory
just listed. What is the command for this at the prompt?


There is a nice program called Directory Lister for Windows that
generates a HTML page with whatever directories you want on a computer.
I use it, along with a search & replace to do most of the grunt work to
create index pages for photos or PDF files.

http://freeware.prv.pl/


--
Service to my country? Been there, Done that, and I've got my DD214 to
prove it.
Member of DAV #85.

Michael A. Terrell
Central Florida
 
D

Don Guillett

ChDir Statement


Changes the current directory or folder.

Syntax

ChDir path

The required path argument is a string expression that identifies which
directory or folder becomes the new default directory or folder. The path
may include the drive. If no drive is specified, ChDir changes the default
directory or folder on the current drive.

Remarks

The ChDir statement changes the default directory but not the default drive.
For example, if the default drive is C, the following statement changes the
default directory on drive D, but C remains the default drive:

ChDir "D:\TMP"
 
B

Barry Watzman

You could use:

C:\>DIR A\*.*

to get a directory of the folder without actually changing to it,

or you could use

C:\>CD A

To switch to the A folder (the prompt would then be C:\A>)

And then just plain "DIR"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top