Show list files by dir command, Computer Engineering

Assignment Help:

Q. Show list files by Dir command?

The Dir command can also be used to list files from the exacting directory. For example, the list of files present in the WORD directory in drive C, you can use the following commands.

            DIR C:\WORD

            DIR \WORD

The first command specifies the directory name and drive with DIR command. The second command does not specify the drive name in the command, does I'll use the default drive. Thus command will show list of file from the WORD directory in drive C only if drive C is the current drive. Otherwise, it will try to locate the WORD directory in the current drive. In both these commands, '\' refers to the root of the top -level directory in the current or the specified drive.

Like this, if you wish to get the list of file from the EXCEL directory, you can use the command -DIR C:\EXCEL. Now think another case.  We wish to list files from the SALE directory (refer to figure 2.1). If you watch carefully at the directory structure show in figure 2.1, you will notice that the Sales directory under the EXCEL directory, you need to specify the complete path for it with DIR command. The compute path for the SALES directory in shown:

Thus, you can use the commend DIR C:\EXCEL\ SALES to list files from the SALES directory. Here, C:\EXCEL\ SALES is the path for the files stored in the SALES directory. The path for any file includes all directories locked above that file in the directory free structure. The path also includes he drive name and the root directory. The root directory is referred to by '\' immediately following ':' after the drive letter, e.g. 'C:\'. If the path includes multiple directories, separate these directories with '\'. Also, do not use any space in the path. For instance, DIR C:\EXCEL \SALES is invalid.

To list files from the root directory of the current drive, you can use the commend- DIR \ (remember that the first '/' after DIR refers to the root directory.)


Related Discussions:- Show list files by dir command

And-elimination-introduction rule - artificial intelligence, And-Eliminatio...

And-Elimination-Introduction rule - Artificial intelligence: And-Elimination In English, this says that "if you know that many things are all true, then you know that any

What is gimp?, The GNU Image Manipulation Program, or GIMP, is a raster gra...

The GNU Image Manipulation Program, or GIMP, is a raster graphics editor application with some support for vector graphics. GIMP is used to process digital graphics & photographs.

Explain working of telnet, Q. Explain Working of TELNET? The working o...

Q. Explain Working of TELNET? The working of TELNET 1.  Commands and characters are sent to operating system on common server computer. 2.  Local operating system send

Difference between reply-to and return-path , What is the difference betwee...

What is the difference between Reply-to and Return-path in the headers of a mail function? Ans) Reply-to: Reply-to is where to deliver the respond of the mail. Return-pat

Transaction that are programmed by the user, How the transaction that are p...

How the transaction that are programmed by the user can be protected? By executing an authority check.

How can a parent and child process communicate, How can a parent and child ...

How can a parent and child process communicate? A parent and child can communicate by any of the normal inter-process communication schemes (pipes, sockets, message queues, sha

Describe arp message format in brief, Describe ARP message format in brief....

Describe ARP message format in brief.                             0                                        8                                      16

Explain about registers, Q. Explain about Registers? A register is a gr...

Q. Explain about Registers? A register is a group of flip-flops that store binary information and gates that controls when and how information is transferred to register. An n-

What is batch processing, What is Batch processing In this process, a n...

What is Batch processing In this process, a number of tasks (or jobs) are all collected together over a set period of time. They are then all loaded into the computer system (i

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd