Write the DOS commands to complete following tasks.

  1. Create sub directory theory and practical inside d:\exam\
  2. Create the file name marks.txt inside theory writing the content, “Theory marks in CFA”.
  3. Rename the file name marks.txt with CFAmarks.txt.
  4. Make hidden the file CFAmarks.txt.
  5. Search the all files with .pdf extension.

Here are the correct DOS commands to perform each task. This is clean, short, exam-specific:

  1. Create subdirectory theory and practical inside d:\exam*

    md d:\exam\theory
    md d:\exam\practical
    
  2. Create the file marks.txt inside theory with content: “Theory marks in CFA”

    echo Theory marks in CFA > d:\exam\theory\marks.txt
    
  3. Rename marks.txt to CFAmarks.txt

    ren d:\exam\theory\marks.txt CFAmarks.txt
    
  4. Make the file CFAmarks.txt hidden

    attrib +h d:\exam\theory\CFAmarks.txt
    
  5. Search all files with .pdf extension

    dir *.pdf /s
    

    ( /s searches in all subdirectories.)

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments