Switches Of Directory Command Plus Moving Out Of Directory With DOS

(?) Wild card

Question mark (?) wild card is used when you want to include fixed number of unknown letters in the command. For example, select those files beginning with name W followed by more
characters and with extension P65, then give the following command:
Dir W ?????.p65

Switches of Directory Command

The form of command can be changed by adding one word code after/ in directory command.
This code is called switch. The important of these directory switches in dos are:

Switches

Description

/p

This switch shows the directory page-wise.

/W

This switch shows the directory wide-wise i.e.in one line it shows not only one file, but many files.

/S

This shows the active directory of the disk and its sub-directory and files.

/B

This shows only name of the files in directory and no other details.

/L

Through this switch, you can see names of all files and directory in small letters.

/C

This makes comparison between files created using double space and the  general file.

/A

Use this to see those files attributes have been changed. Along with this switch, you can see R (Read only), H (Hedden) and S (system) files.


To see directory with switches

Use /p to see page wise directory:

Dir /p <enter>

ms dos dir slash-p

Generally when you give DIR command, then contents of directory are seen moving in ascending order and last 22 files remain on the screen. But when you use /P switch, then first 22 files appear and stay on the screen. After seeing them, when you press and key files from next page start appearing on the screen and this process continue until the last files appear on the screen.


Moving out of Directory

CD .. Command is used for moving out of directory. Give space after CD and type two dots in front of CD.
Suppose, at present you are working in C:\users\Directory> and now want to switch over to users then command will be: CD ..

ms dos cd doubble dot



share img

Facebook Twitter Google+ Pinterest LinkedIn StumbleUpon Digg Y! Bookmarks Email Blogger