Assign 4

 

 

  1. Write the MS-DOS command used to format a 1.44MB floppy disk on a high-density drive and place "system files" on the disk. Be sure to show "switches"

 

  1. Using the "attrib" command  list  all files including hidden, system, and read only files on the floppy disk and identify their directories.

 

  1. Files with the extension .exe are  ____________ files.

 

 

  1. Make a directory “Beatles”. Make 4 files in this directory and call them John.txt, Paul.txt, George.txt. and Ringo.txt. Enter the following lines in each file

 

John.txt

Hey Jude, don't make it bad.
Take a sad song and make it better.
Remember to let her into your heart,
then you can start to make it better

 

Paul.txt

Hey Jude, don't be afraid.
You were made to go out and get her.
The minute you let her under your skin,
then you begin to make it better.

 

George.txt

And anytime you feel the pain, hey Jude, refrain,
don't carry the world upon your shoulders.
For well you know that it's a fool who plays it cool
by making his world a little colder.

Ringo.txt
Hey Jude, don't let her down.
You have found her, now go and get her.
Remember to let her into your heart,
then you can start to make it better.

 

  1. List all files in this subdirectory including file size information.

 

Using the copy command combine all the files in "Beatles" into one file called Hey_Jude.txt.

 

Note the file size of each individual file.

 

What is the file size of big.txt? What is the difference between the total bytes of each file used to make "Hey_Jude.txt" and this new combined file called "Hey_Jude.txt"? Why?

 

  1. Add the following lines in “Hey_Jude.txt”

 

So let it out and let it in, hey, Jude, begin

You're waiting for someone to perform with

And don't you know that it's just you, hey, Jude,

You'll do, the movement you need is on your shoulder

 

Hey, Jude, don't make it bad

Take a sad song and make it better

Remember to let her into your heart

Then you can start to make it better.

 

  1. Display the contents of the file pagewise.

 

  1. List the directory “Beatles” by extension in alphabetical order, redirecting the output to a file dir_sort.txt.

 

  1. Explain in your own words what each switch for the command Xcopy means to the DOS user.

 

  1. Make a batch file called song.bat which will do the following. The file should contain the statement –       The sixties

 

i)                    Change the date to April 30,2002

ii)                   LONDON, England -- A sale of rare Beatles memorabilia is set to take place without one of the main lots after Sir Paul McCartney intervened.

iii)                 Add the title HEY JUDE.

iv)                 Display the contents of the file Hey_Jude.

v)                  Pause the screen.

vi)                 Exit to windows.

 

 

 

!

Hosted by www.Geocities.ws

1