Which of the following Windows console commands deletes a folder (c:\test), whether or not it is empty, without issuing any warnings?
- rd test
- rd test\* /q
- del c:\test\*.* /s
- rd c:\test /s /q
EXPLANATION
The /s switch deletes ALL elements recursively inside the specified folder.The /q switch is the silent mode, meaning there will be absolutely no warnings.
Caution
When you run rd /s in quiet mode, the entire directory tree is deleted without confirmation. Ensure that important files are moved or backed up before using the /q command-line option.
0 comments:
Post a Comment