Which of the following would you use to find the temp files on the C: drivefrom a
command line?
A. DIR ~*.* ; *.TMP
B. DIR C:\*.TMP /S
C. *.TMP; ~*.*
D. DIR C:\~*.* /S
Answer: B, D
Explanation:
Because some temp files end with .TMP and others start with a tilde (~), you would have
to issue two DIR 000-638 sequences To find all the temp files on Drive C: The first would be DIR
C:\~*.* /S to find any file that began with a tilde, starting from the root directory of Drive
C: and looking in every sub-directory on the drive.000-639 The second would be to use DIR
C:\*.TMP /S to find any file in any sub-directory on Drive C: with a .TMP extension.
Reference:
David Groth and Dan Newland,000-641 A+ Complete Study Guide (Second Edition), Sybex,
Alameda, CA, 2001, pp. 557.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment