- Create sub directory theory and practical inside d:\exam\
- Create the file name marks.txt inside theory writing the content, “Theory marks in CFA”.
- Rename the file name marks.txt with CFAmarks.txt.
- Make hidden the file CFAmarks.txt.
- Search the all files with .pdf extension.
Here are the correct DOS commands to perform each task. This is clean, short, exam-specific:
-
Create subdirectory theory and practical inside d:\exam*
md d:\exam\theory md d:\exam\practical
-
Create the file marks.txt inside theory with content: “Theory marks in CFA”
echo Theory marks in CFA > d:\exam\theory\marks.txt
-
Rename marks.txt to CFAmarks.txt
ren d:\exam\theory\marks.txt CFAmarks.txt
-
Make the file CFAmarks.txt hidden
attrib +h d:\exam\theory\CFAmarks.txt
-
Search all files with .pdf extension
dir *.pdf /s
(
/ssearches in all subdirectories.)