5.10. Prep Test
You are working on the help desk, and you receive a call from Mary. She is looking for a file that is saved on her hard drive. She has forgotten the name she gave it, but she knows that the title contains the word "budget" and that it is a Microsoft Excel spreadsheet. What command will best help her locate her document?
^ dir *budget.xls
^ dir *budget*.xls /b
^ dir *.budget*.xls /s
^ dir *budget*.xls /b /s
Sitting at your computer one day, you attempt to open a file with the edit command, but you see in the title bar that the file is opened as read-only. How can you open the file for editing?
^ Open the file using edit <filename> /modify.
^ Before opening the file, use attrib -r <filename>.
^ After the file is open, use attrib -r <filename>.
^ When you attempt to save the file, check off the Overwrite Existing File option.
You need to regularly back up files in a directory, but you want to back up only files that have changed. What commands can you use to accomplish this in the easiest way possible?
^ fc and xcopy
^ attrib and copy
^ fc, changes, and xcopy
^ xcopy and attrib
You want to copy a directory structure (complete with subdirectories), so you use copy c:\dir1\*.* c:\newdir /s /e. What will you find in the newdir directory?
^ All files that were in dir1
^ All files and subdirectories that were in dir1
^ Nothing — the command is improperly constructed and will generate an error
^ None of the above
You receive a call from a user on your network complaining that his computer ...
Get CompTIA A+® Certification All-In-One For Dummies®, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.