For many end users, the Windows Explorer GUI is the only mechanism they’ll use to manipulate files and folders. But, IT pros often find times when they need to copy files, delete folders, or change file type associations from the command line. So, I’ve put together this short quiz to test your knowledge of working with files an folder from the Windows 7 command prompt.

Note: Unfortunately, our poll tool, which I use to create each pop quiz, doesn’t let me indicate a correct answer after each question. To keep from giving away the answers before everyone has a chance to test his/her knowledge, and ruining all the fun, I’ve published the answers on the second page of this blog post. I encourage everyone to answer all the questions before looking at the second page or using your favorite search engine to find the answers.

Answers are on the next page.

Answers to our TR Dojo pop quiz on working with files and folder from the Windows command line (correct answers in bold):

1. Which of the following commands is used to change the command prompt path to a different location?

md

go

change

cd

2. Which of the following commands would create a directory called files at the root of the c:\ drive?

create c:\root\files

md c:\root\files

newdir \files

md \files

3. Which of the following commands would create a directory called new files at the root of the c:\ drive?

create \new files

newdir c:\root\new files

md \new files

md \”new files”

4. Which of the following commands would delete the directory data, which contains files, from the root of the c:\drive?

delete \data

delete /s \data

rd \data

rd /s \data

5. Which of the following commands would you use to view or modify the file type associated with a specific file extension?

type

ftype

assoc

ext

6. Which of the following commands would you use to view or modify the application that will open a specific file type?

type

ftype

assoc

ext

7. Which of the following commands would you use to view or change a file’s attributes?

file

attrib

char

info

8. Which of the following commands would you use to encrypt all the files in the current directory and change the directory attribute to E?

encrypt all

encrypt /e

cipher

cipher /e

9. Which of the following commands would you use to delete all files in the current directory with the .txt extension?

del all txt

del .txt

del *.txt

del txt

10. Which of the following commands would you use to take ownership of a file named data.txt in the current directory?

own data.txt

takeown /f data.txt

takeown data.txt

grab /f data.txt