You are on page 1of 1

30/01/2024, 01:13 Learning Platform | CompTIA

Lab Report

Lab Report
Time Spent: 08:54
Score: 4/4 (100%)
TASK SUMMARY
Required Actions
Create the D:\utilities\recover directory
Delete the D:\software\arch98 directory.
Hide files Show Details
Make files Read-only Show Details

EXPLANATION
Complete this lab as follows:

IMPORTANT: Do NOT close the PowerShell window. If you do, you will need to restart the lab.

1. Create the D:\Utilities\Recover folders.


a. At the PowerShell prompt, type d: and press Enter to change the working directory to the D: drive.
b. Type dir and press Enter to see the existing contents of the drive.
c. Type md utilities\recover and press Enter to create the directory.
d. Type dir and press Enter to verify that the d:\utilities folder was created.
e. Type cd utilities\recover and press Enter to verify that the folders were created.
2. Delete the D:\software\arch98 directory and all of its files.
a. (Optional)
Type cd \software\arch98 and press Enter to verify that these folders exist.
Type cd \ and press Enter to change the working directory back to the root of the hard drive.
Type rmdir software\arch98 and press Enter to delete the arch98 directory.
The directory could not be deleted because it contains files.
b. Type rmdir /? and press Enter to see a list of switches that can be used with the command.
c. Type rmdir software\arch98 switch and press Enter to delete the directory and all of its contents.
d. Type y and press Enter to confirm the deletion.
3. Set file attributes to hide the following files:
D:\software\apconf.exe
D:\cmdstrt.cfg
D:\strt.bat
a. Type attrib /? and press Enter to see the syntax for using the command.
b. Type attrib path\filename and press Enter.
Which attributes are currently set for the file?
c. Type attrib +h path\filename and press Enter.
d. Type attrib path\filename and press Enter to verify that the file attribute was set.
e. Repeat steps 3c-3d for the remaining two files.
4. Set file attributes for the following files to Read-only:
D:\software\softcfg.cfg
D:\software\pixel.cfg
a. Type CD \Software and then press Enter.
b. Type attrib +r filename and press Enter to set the file to Read-only.
c. Type attrib filename and press Enter to verify that the file attribute was set.
d. Repeat steps 4b-4c to set the additional file to Read-only.

https://labsimapp.testout.com/v6_0_583/simwindow.html?c2ltRGVmVXJsPWh0dHBzJTNBJTJGJTJGY2RuLnRlc3RvdXQuY29tJTJGX3ZlcnNpb25fODAxN… 1/1

You might also like