Ace your COMPTIA A+ certification with our practice exam. Engage with a variety of questions including multiple choice and performance-based, complete with hints and detailed explanations. Prepare effectively and boost your confidence for the big day!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which command sets file attributes in Windows?

  1. attrib.exe

  2. setattrib.exe

  3. fileattr.exe

  4. chmod.exe

The correct answer is: attrib.exe

The command that sets file attributes in Windows is attrib.exe. This utility allows users to change the attributes of files and directories, such as setting them to hidden, read-only, or system files. It's a built-in command in the Windows operating system and can be used from the Command Prompt. Other options provided do not pertain to Windows-specific commands for file attributes. For instance, setattrib.exe and fileattr.exe are not standard commands available in Windows. Chmod.exe is actually a command used in Unix and Unix-like operating systems to manage file permissions, not attributes, making it irrelevant in the context of setting file attributes in a Windows environment.